diff --git a/app/assets/stylesheets/errbit.css b/app/assets/stylesheets/errbit.css index 90a65a7..4c45ebf 100644 --- a/app/assets/stylesheets/errbit.css +++ b/app/assets/stylesheets/errbit.css @@ -579,6 +579,17 @@ table.apps tbody tr:hover td ,table.errs tbody tr:hover td { background-color: # table.apps td.name, table.errs td.message { width: 100%; } +table.apps td { + padding-top: 16px; + padding-bottom: 16px; +} +table.apps td.issue_tracker, table.apps td.count { + padding-top: 10px; + padding-bottom: 10px; + text-align: center; +} +table.apps td.issue_tracker img { vertical-align: top; } + td.message .line { display:inline-block; margin-left:1em; diff --git a/app/views/apps/index.html.haml b/app/views/apps/index.html.haml index f55afa8..25e423a 100644 --- a/app/views/apps/index.html.haml +++ b/app/views/apps/index.html.haml @@ -2,16 +2,31 @@ - content_for :action_bar do %span= link_to('Add a New App', new_app_path, :class => 'add') if current_user.admin? +- any_github_repos = @apps.any? {|a| a.github_repo? } +- any_issue_trackers = @apps.any? {|a| a.issue_tracker_configured? } + %table.apps %thead %tr %th Name + - if any_github_repos + %th GitHub Repo + - if any_issue_trackers + %th Tracker %th Last Deploy %th Errors %tbody - @apps.each do |app| %tr %td.name= link_to app.name, app_path(app) + - if any_github_repos + %td.github_repo + - if app.github_repo? + = link_to(app.github_repo, app.github_url, :target => '_blank') + - if any_issue_trackers + %td.issue_tracker + - if app.issue_tracker_configured? + = image_tag("#{app.issue_tracker.class::Label}_create.png") %td.deploy - if app.last_deploy_at - revision = app.deploys.last.short_revision -- libgit2 0.21.2