Skip to content

Commit

Permalink
add last_github_update to project list
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlindsey committed Jan 31, 2023
1 parent 392731f commit 7d5d0c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/projects/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<% show_it = (p.status == 'active' || p.status == 'Active' ? true : false) %>
<% follower_count = p.followers.count %>
<% commit_count = p.commit_count %>
<% last_update = p.last_github_update %>
<% content_tag :li, "", style: show_it ? '' : 'display: none;', class: show_it ? '' : 'inactive' %>
<div class="project_card">
<% if has_docs %>
Expand All @@ -67,6 +68,14 @@
</div>
<% end %>
<% end %>
<% unless last_update.nil? %>
<%= content_tag :div, "", style: show_it ? '' : 'display: none;', class: show_it ? 'col' : 'inactive' do -%>
<div data-toggle="tooltip" data-placement="top" title="last update on github">
<i class="fa fa-calendar"></i>
<%= format_date(last_update) %>
</div>
<% end %>
<% end %>
</div>
</div>
</li>
Expand Down

0 comments on commit 7d5d0c3

Please sign in to comment.