amatriain/feedbunch

View on GitHub
FeedBunch-app/app/views/api/tours/show_feed.json.erb

Summary

Maintainability
Test Coverage
<% cache "feed_tour-#{I18n.locale}" do %>

  {
    "tour": "feed",
    "i18n": {
      "nextBtn": "<%= t 'read.tours.feed.nextBtn' %>",
      "doneBtn": "<%= t 'read.tours.feed.doneBtn' %>",
      "closeTooltip": "<%= t 'read.tours.feed.closeTooltip' %>"
    },
    "steps": [
      {
        "target": "#feed-title",
        "placement": "bottom",
        "title": "<%= t 'read.tours.feed.step1.title' %>",
        "content": "<%= t 'read.tours.feed.step1.content_html' %>"
      },
      {
        "target": "#read-all-button-wrapper",
        "placement": "bottom",
        "title": "<%= t 'read.tours.feed.step2.title' %>",
        "content": "<%= t 'read.tours.feed.step2.content_html' %>"
      },
      {
        "target": "#folder-management-dropdown",
        "placement": "bottom",
        "xOffset": -50,
        "arrowOffset": 50,
        "title": "<%= t 'read.tours.feed.step3.title' %>",
        "content": "<%= t 'read.tours.feed.step3.content_html' %>"
      }
    ]
  }

<% end %>