Sha256: 3ef091d0a7e1f361201a8c3a8568f13327817cd9cce6c60d6e114c11b11569a9

Contents?: true

Size: 1.12 KB

Versions: 101

Compression:

Stored size: 1.12 KB

Contents

<% comments.each do |comment| user = comment.comment_user.decorate %>
    <div class="row <%= "answer" if children.present? %>">
        <div class="col-sm-1 <%= "col-md-offset-1" if children.present? %>">
            <div class="thumbnail">
                <%= link_to(image_tag(user.the_avatar, class: "img-responsive"), user.the_url) %>
            </div><!-- /thumbnail -->
        </div><!-- /col-sm-1 -->

        <div class="col-sm-<%= children.present? ? "8" : "9" %>">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <strong class=""><%= link_to(user.the_name, user.the_url) %></strong> <small class="text-muted pull-right"><%= comment.decorate.the_created_at %></small>
                </div>
                <div class="panel-body">
                    <%= raw comment.content %>
                </div><!-- /panel-body -->
            </div><!-- /panel panel-default -->
        </div><!-- /col-sm-5 -->
    </div>
    <%= render partial: "partials/comments_list", locals: { comments: comment.children.approveds, children: "present" }  if comment.children.present? %>
<% end %>

Version data entries

101 entries across 101 versions & 2 rubygems

Version Path
camaleon_cms-2.6.0 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.5.3.1 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.5.3 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.5.2 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms_rails6-2.5.0 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.5.1 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.5.0 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.9 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.8 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.7 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.6 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.5 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.4 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.3 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.2 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.1 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.6.0 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.5.14 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.5.13 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb
camaleon_cms-2.4.5.12 app/views/camaleon_cms/default_theme/partials/_comments_list.html.erb