Sha256: a820e34f666ef01ed9937b03e383b43e10dfd09cef9e9aa108b6e45820f8fc34

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 KB

Contents

<%= render layout: 'discussions/message_container', locals: {user: user} do %>
  <div class="discussion-message-bubble">
    <div class="discussion-message-bubble-header">
      <div class="discussion-message-bubble-title">
        <%= user.name %>
        <span class="message-date">
          <%= t(:time_since, time: time_ago_in_words(message.created_at)) %>
        </span>
        <% if user.moderator_here? %>
          <%= fa_icon(:star, {'data-toggle': 'tooltip', title: (t :moderator), class: 'moderator-star'}) %>
        <% end %>
        <% if message.authorized? current_user %>
          <span class="actions">
            <% if current_user.moderator_here? %>
              <a class="discussion-message-approved <%= 'selected' if message.approved? %>" onclick="mumuki.Forum.discussionMessageToggleApprove('<%= approve_discussion_message_url(@discussion, message) %>', $(this))">
                <%= fa_icon(:check, class: 'fa-xs') %>
              </a>
              <a class="discussion-message-not-actually-a-question <%= 'selected' if message.not_actually_a_question? %>" onclick="mumuki.Forum.discussionMessageToggleNotActuallyAQuestion('<%= question_discussion_message_url(@discussion, message) %>', $(this))">
                <%= fa_icon('question-circle-o', class: 'fa-xs') %>
              </a>
            <% end %>
            <%= link_to fa_icon('trash-o'), discussion_message_path(@discussion, message), method: :delete, data: { confirm: t(:are_you_sure, action: t(:destroy_message)) } %>
          </span>
        <% end %>
      </div>
    </div>
    <div class="discussion-message-bubble-content">
      <div class="discussion-message-content">
        <%= message.content_html %>
      </div>
    </div>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mumuki-laboratory-7.7.2 app/views/discussions/_message.html.erb
mumuki-laboratory-7.7.1 app/views/discussions/_message.html.erb
mumuki-laboratory-7.7.0 app/views/discussions/_message.html.erb