Skip to content

Commit

Permalink
Merge pull request #176 from voxpupuli/fix-last-status
Browse files Browse the repository at this point in the history
fix last status
  • Loading branch information
bastelfreak authored May 7, 2020
2 parents 7aa1670 + 6050ec7 commit acf33d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class DashboardController < ApplicationController
def show
@repositories = Repository.all
@statuses = @repositories.map(&:current_status)
@last_status = RepositoryStatus.last
end

def about; end
Expand Down
2 changes: 1 addition & 1 deletion app/views/dashboard/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Hej! Nice to meet you :)
.sub.header
Last sync was
= @statuses.last.created_at
= @last_status&.created_at

.ui.large.header Operating System Support
.ui.five.cards
Expand Down

0 comments on commit acf33d8

Please sign in to comment.