Sha256: 9ce06310a5921fa78d4c02746d5d603087c999a7adf9eb90dfee6529eb85d32f

Contents?: true

Size: 1.37 KB

Versions: 25

Compression:

Stored size: 1.37 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',
                rel: 'nofollow' %>
  <% end %>
  <% if thredded_current_user %>
    <% if topic.followed? %>
      <div class="thredded--topic-header--follow-info">
        <span class="thredded--topic-header--follow-info--reason">
          <%= topic_follow_reason_text topic.follow_reason %>
        </span>
        <%= button_to topic.unfollow_path, form: {class: 'thredded--topic-header--follow-info--unfollow'} do %>
          <%= t('thredded.topics.unfollow') %>
          <%= inline_svg 'thredded/follow.svg', class: 'thredded--topic-header--follow-icon' %>
        <% end %>
      </div>
    <% else %>
      <div class="thredded--topic-header--follow-info">
        <%= button_to t('thredded.topics.follow'), topic.follow_path,
                      form: {class: 'thredded--topic-header--follow-info--follow'} %>
      </div>
    <% end %>
  <% end %>
  <%= render partial: 'thredded/topics/followers', locals: {topic: topic} %>
</header>

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
thredded-0.16.1 app/views/thredded/topics/_header.html.erb
thredded-0.16.0 app/views/thredded/topics/_header.html.erb
thredded-0.15.5 app/views/thredded/topics/_header.html.erb
thredded-0.15.4 app/views/thredded/topics/_header.html.erb
thredded-0.15.3 app/views/thredded/topics/_header.html.erb
thredded-0.15.2 app/views/thredded/topics/_header.html.erb
thredded-0.15.1 app/views/thredded/topics/_header.html.erb
threddedDANIEL-0.14.5 app/views/thredded/topics/_header.html.erb
thredded-0.14.4 app/views/thredded/topics/_header.html.erb
thredded-0.14.3 app/views/thredded/topics/_header.html.erb
thredded-0.14.2 app/views/thredded/topics/_header.html.erb
thredded-0.14.1 app/views/thredded/topics/_header.html.erb
thredded-0.14.0 app/views/thredded/topics/_header.html.erb
thredded-0.13.8 app/views/thredded/topics/_header.html.erb
thredded-0.13.7 app/views/thredded/topics/_header.html.erb
thredded-0.13.6 app/views/thredded/topics/_header.html.erb
thredded-0.13.5 app/views/thredded/topics/_header.html.erb
thredded-0.13.4 app/views/thredded/topics/_header.html.erb
thredded-0.13.3 app/views/thredded/topics/_header.html.erb
thredded-0.13.2 app/views/thredded/topics/_header.html.erb