Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

timeline_rails_helper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timeline_rails_helper

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

TimelineRailsHelper

Ruby Gem Version Ruby Style Guide CircleCI

The TimelineRailsHelper provides a timeline_molecules_tag helper to draw a vertical time line usable with vanilla CSS.

See It Work

output

Installation

Prerequisites

  • Ruby >= 2.6

Stacks

Add this line to your application's Gemfile:

gem "timeline_rails_helper"

And then execute:

$ bundle

Or install it yourself as:

$ gem install timeline_rails_helper

Usage

QQTW (Quickest Quick-start in The West)

<div id="time_line_rails_helper">
<%= timeline_molecules_tag [{title: (DateTime.now - 3.days).strftime('%Y-%m-%d'),
body: 'This is a test'},
{title: DateTime.now.strftime('%Y-%m-%d'),
body: 'This is a test'}] %>
</div>
timeline_molecules_tag [{title: (DateTime.now - 3.days).strftime('%Y-%m-%d'),
                         body: 'This is a test'},
                        {title: DateTime.now.strftime('%Y-%m-%d'),
                         body: 'This is a test'}]

#   =>   "<div class="entries">
#           <div class="entry">
#             <div class="title ">2022-04-13</div>
#             <div class="body">This is a test</div>
#           </div>
#           <div class="entry">
#             <div class="title ">2022-04-16</div>
#             <div class="body">This is a test</div>
#           </div>
#         </div>"

Development

Test

bin/test

Changelog

TimelineRailsHelper's changelog is available here.

Contributing

Bug reports and pull requests are welcome on Github at https://github.com/smapira/timeline_rails_helper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct. License

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the timeline_rails_helper project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

You may enjoy owning other libraries and my company.

Acknowledgments

FAQs

Package last updated on 23 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc