add_odd-even_class_to_time_entries_block_from_my_page.patch

Marius BALTEANU, 2017-01-25 20:53

Download (1.38 KB)

View differences:

app/views/my/blocks/_timelog.html.erb
34 34

  
35 35
<% if entries.any? %>
36 36
<%= form_tag({}, :data => {:cm_url => time_entries_context_menu_path}) do %>
37
<table class="list time-entries">
37
<table class="list time-entries odd-even">
38 38
<thead><tr>
39 39
<th><%= l(:label_activity) %></th>
40 40
<th><%= l(:label_project) %></th>
public/stylesheets/application.css
320 320

  
321 321
tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
322 322

  
323
div.mypage-box table.time-entries tr.time-entry { background-color: #fff; }
324
div.mypage-box table.time-entries tr.odd { background-color:#f6f7f8; }
325 323
tr.time-entry { text-align: center; white-space: nowrap; }
326 324
tr.time-entry td.issue, tr.time-entry td.comments, tr.time-entry td.subject, tr.time-entry td.activity { text-align: left; white-space: normal; }
327 325
td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }