Sha256: 8360c262206e5a2f60d0d69556f39101d57006db02d0212aa2eb06798c32c708

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 KB

Contents

<header class="thredded--topic-header">
  <h1 class="thredded--topic-header--title"><%= topic.title %></h1>
  <cite class="thredded--topic-header--started-by">
    <%= t 'thredded.topics.started_by_html',
          time_ago: time_ago(topic.created_at),
          user:     user_link(topic.user) %>
  </cite>
  <% if topic.can_update? %>
    <%= link_to t('thredded.topics.edit'), topic.edit_path,
                class: 'thredded--topic-header--edit-topic' %>
  <% end %>
  <% if current_user %>
    <% if follow = current_user.following?(topic)%>
      <div class="thredded--topic-follow-info thredded--following">
        <p>
          <% # i18n-tasks-use t('thredded.topics.following.manual') t('thredded.topics.following.posted') t('thredded.topics.following.mentioned') %>
          <%= t("thredded.topics.following.#{follow.reason}") %></p>
        <%= t('thredded.topics.following_will_receive_emails') %>
        <%= button_to 'Stop following', topic.unfollow_path %>
      </div>
    <% else %>
      <div class="thredded--topic-follow-info thredded--notfollowing">
        <%= button_to 'Follow this topic', topic.follow_path %>
      </div>
    <% end %>
  <% end %>
</header>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thredded-0.6.3 app/views/thredded/topics/_header.html.erb
thredded-0.6.2 app/views/thredded/topics/_header.html.erb
thredded-0.6.1 app/views/thredded/topics/_header.html.erb
thredded-0.6.0 app/views/thredded/topics/_header.html.erb
thredded-0.5.1 app/views/thredded/topics/_header.html.erb
thredded-0.5.0 app/views/thredded/topics/_header.html.erb