Sha256: 45a78f6a896346954d68c77ea5705e3c7f17a3377f91b367020e6e5fe3a6418c

Contents?: true

Size: 1.83 KB

Versions: 21

Compression:

Stored size: 1.83 KB

Contents

<div class="add-comment">
  <h4 class="section-heading"><%= t("decidim.components.add_comment_form.title") %></h4>

  <% if user_signed_in? %>
    <% if alignment_enabled? %>
      <div class="opinion-toggle button-group">
        <span class="show-for-sr"><%= t("decidim.components.add_comment_form.opinion.label") %></span>
        <button aria-pressed="false" class="button tiny button--muted opinion-toggle--ok" data-selected-label="<%= t("decidim.components.add_comment_form.opinion.positive_selected") %>">
          <%= icon "thumb-up", role: "img", "aria-hidden": true %>
          <span class="show-for-sr"><%= t("decidim.components.add_comment_form.opinion.positive") %></span>
        </button>
        <button aria-pressed="true" class="button tiny button--muted opinion-toggle--meh is-active" data-selected-label="<%= t("decidim.components.add_comment_form.opinion.neutral_selected") %>">
          <%= t("decidim.components.add_comment_form.opinion.neutral") %>
        </button>
        <button aria-pressed="false" class="button tiny button--muted opinion-toggle--ko" data-selected-label="<%= t("decidim.components.add_comment_form.opinion.negative_selected") %>">
          <%= icon "thumb-down", role: "img", "aria-hidden": true %>
          <span class="show-for-sr"><%= t("decidim.components.add_comment_form.opinion.negative") %></span>
        </button>
        <div role="alert" aria-live="assertive" aria-atomic="true" class="selected-state show-for-sr"></div>
      </div>
    <% end %>
    <%== cell("decidim/comments/comment_form", model, root_depth: root_depth) %>
  <% else %>
    <p>
      <span>
        <%== t(
          "decidim.components.add_comment_form.account_message",
          sign_in_url: decidim.new_user_session_path,
          sign_up_url: decidim.new_user_registration_path
        ) %>
      </span>
    </p>
  <% end %>
</div>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
decidim-comments-0.27.9 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.8 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.7 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.6 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.10 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.9 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.5 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.8 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.4 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.3 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.7 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.5 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.2 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.1 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.4 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.0 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.3 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.0.rc2 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.27.0.rc1 app/cells/decidim/comments/comments/add_comment.erb
decidim-comments-0.26.2 app/cells/decidim/comments/comments/add_comment.erb