docbrown/app/views/users/_main_feed.html.erb
ludwiczakpawel de5a22ecf7
Profile UI update (#11357)
* tooltips 1.0.1

* tooltips 1.0.1

* profile layout

* fix

* whoops

* better github repos

* spec

* brining back doc, and making liitle fixes

* button placement, stats styling

* rename
2020-11-12 08:47:04 +01:00

27 lines
991 B
Text

<% if @pinned_stories.present? %>
<div class="crayons-card mb-2 border-2 border-solid border-accent-brand">
<header>
<h3 class="crayons-subtitle-3 inline-flex items-center bg-accent-brand color-base-inverted pl-3 pr-4 py-2 ml-4 -mt-2 radius-default">
<%= inline_svg_tag("pin.svg", aria: true, class: "crayons-icon mr-2", title: "Pin") %>
Pinned
</h3>
</header>
<div class="p-4 pb-2 pt-3">
<% @pinned_stories.each do |story| %>
<%= render "articles/single_story", story: story, featured: false %>
<% end %>
</div>
</div>
<% end %>
<% @stories.each_with_index do |story, i| %>
<%= render "articles/single_story", story: story, featured: false %>
<% if i == 0 && @comments.present? %>
<%= render "users/comments_section" %>
<% end %>
<% end %>
<% if @stories.none? && @comments.present? %>
<%= render "users/comments_section" %>
<% end %>
<% if @stories.size > 1 %>
<div class="placeholder-div"></div>
<% end %>