Commit 9ab86ab582946973c113a68a9da657e348a8a2f4

Authored by Jared Pace
1 parent ce442af9
Exists in master and in 1 other branch production

Format times for deploys

app/views/errs/_table.html.haml
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 = link_to err.message, project_err_path(err.project, err) 19 = link_to err.message, project_err_path(err.project, err)
20 %em= err.where 20 %em= err.where
21 %td.latest #{time_ago_in_words(err.last_notice_at)} ago 21 %td.latest #{time_ago_in_words(err.last_notice_at)} ago
22 - %td.deploy= err.project.last_deploy_at ? err.project.last_deploy_at.to_date.to_s(:micro) : 'n/a' 22 + %td.deploy= err.project.last_deploy_at ? err.project.last_deploy_at.to_s(:micro) : 'n/a'
23 %td.count= err.notices.count 23 %td.count= err.notices.count
24 - if errs.none? 24 - if errs.none?
25 %tr 25 %tr
config/initializers/time_formats.rb 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +Time::DATE_FORMATS[:micro] = '%b %d %l:%M%P'
0 \ No newline at end of file 2 \ No newline at end of file
public/stylesheets/application.css
@@ -172,27 +172,21 @@ pre { @@ -172,27 +172,21 @@ pre {
172 .html ol li { margin-bottom: 0.5em; list-style: decimal; } 172 .html ol li { margin-bottom: 0.5em; list-style: decimal; }
173 173
174 /* Projects Table */ 174 /* Projects Table */
175 -table.projects td.name { 175 +table.projects td.name, table.errs td.message {
176 width: 100%; 176 width: 100%;
177 } 177 }
178 -table.projects td.deploy {  
179 - white-space: no-wrap; 178 +td.deploy {
  179 + white-space: nowrap;
  180 +}
  181 +td.latest {
  182 + white-space: nowrap;
180 } 183 }
181 184
182 /* Err Tables */ 185 /* Err Tables */
183 -table.errs td.message {  
184 - width: 100%;  
185 -}  
186 table.errs td.message a { 186 table.errs td.message a {
187 display: block; 187 display: block;
188 } 188 }
189 table.errs td.message em { 189 table.errs td.message em {
190 color: #727272; 190 color: #727272;
191 font-size: 0.9em; 191 font-size: 0.9em;
192 -}  
193 -table.errs td.latest {  
194 - white-space: nowrap;  
195 -}  
196 -table.errs td.deploy {  
197 - white-space: nowrap;  
198 } 192 }
199 \ No newline at end of file 193 \ No newline at end of file