Sha256: a5800c32792f2bc167078df87e45c5e187115bab3a7c4b553a247f11347813f0

Contents?: true

Size: 1.61 KB

Versions: 10

Compression:

Stored size: 1.61 KB

Contents

<div class="discussions">
  <% @filtered_discussions.each do |discussion| %>
    <%= link_to exercise_discussion_path(discussion.exercise.id, discussion), class: 'discussion-link' do %>
      <div class="discussion">
        <div class="discussion-row">
          <div class="d-flex justify-content-between">
            <div class="discussion-title">
              <div class="discussion-language-icon">
                <%= language_icon(discussion.exercise.language) %>
              </div>
              <span class="d-none d-lg-inline"><%= discussion.exercise.guide.name %> -</span>
              <span><%= discussion.exercise.name %></span>
              <% if discussion.current_responsible_visible_for?(current_user) %>
                <span class="badge ms-1 bg-dark">
                  <%= responsible_moderator_text_for(discussion, current_user)%>
                </span>
              <% end %>
            </div>
            <div class="discussion-title-icons">
              <%= discussion_messages_count(discussion) %>
              <%= discussion_validated_messages_count(discussion) %>
            </div>
          </div>
          <span class="discussion-description">
            <%= discussion.description %>
          </span>
          <span class="discussion-initiator">
            <strong><%= discussion_user_name discussion.initiator %></strong>
            <%= friendly_time(discussion.created_at, :asked_time_since) %>
            <span class="discussion-status-icon">
              <%= discussion_status_fa_icon(discussion) %>
            </span>
          </span>
        </div>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.22.0 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.21.0 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.20.1 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.20.0 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.19.0 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.18.1 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.18.0 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.17.0 app/views/layouts/_discussions_list.html.erb
mumuki-laboratory-9.16.0 app/views/layouts/_discussions_list.html.erb