docbrown/app/views/users/_sidebar_additional.html.erb
Sebastien a25446b1d4 Add organizations to user profile (#5583) [deploy]
* Add organizations to user profile

* Add user organization info updated at column and cache key

* Remove default value for users organization_info_updated_at column

* Update organization_memberships factory

* Remove schema organization_info_updated_at default value

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-01-27 13:31:27 -05:00

28 lines
1.2 KiB
Text

<div id="sidebar-wrapper-right" class="sidebar-wrapper sidebar-wrapper-right">
<div class="sidebar-bg" id="sidebar-bg-right"></div>
<div class="side-bar sidebar-additional showing" id="sidebar-additional">
<%= render "users/organizations_area" %>
<% @user.github_repos.where(featured: true).order(stargazers_count: :desc, name: :asc).each do |repo| %>
<a class="widget" href="<%= repo.url %>" target="_blank">
<header>
<h4><span class="emoji"><img src="<%= asset_path("github-logo.svg") %>" alt="github logo"></span><%= repo.name %></h4>
</header>
<div class="widget-body">
<% if repo.description.present? %>
<%= EmojiConverter.call(repo.description) %>
<% end %>
<div class="widget-footer">
<% if repo.fork %>
<span class="widget-accent">fork</span>
<% end %>
<%= repo.language %>
<% if repo.stargazers_count.to_i > 0 %>
<img src="<%= asset_path("star.svg") %>" alt="star icon"> <%= repo.stargazers_count %>
<% end %>
</div>
</div>
</a>
<% end %>
<%= render "articles/badges_area" %>
</div>
</div>