Skip to content

Commit 916e68c

Browse files
committed
left-align names and descriptions #18
1 parent 57d7d84 commit 916e68c

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

app/views/resource_items/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<tbody>
1919
<% for i in @resource_items %>
2020
<tr>
21-
<td><%= i.category.name %>
22-
<td><%= link_to i.name, edit_project_resource_item_path(@project, i) %></td>
21+
<td class="category"><%= i.category.name %>
22+
<td class="name"><%= link_to i.name, edit_project_resource_item_path(@project, i) %></td>
2323
<td><%= delete_link project_resource_item_path(@project, i) %></td>
2424
</tr>
2525
<% end %>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<tr>
2-
<td><%= link_to supply_item.name, edit_project_supply_item_path(supply_item.project, supply_item) %></td>
2+
<td class="name"><%= link_to supply_item.name, edit_project_supply_item_path(supply_item.project, supply_item) %></td>
33
<td><%= supply_item.stock_text %></td>
4-
<td class="text"><div><%= textilizable supply_item.description %></div></td>
4+
<td class="description"><div><%= textilizable supply_item.description %></div></td>
55
<td><%= delete_link(project_supply_item_path(supply_item.project, supply_item)) %>
66
</tr>

assets/stylesheets/supply.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11

2-
/* SupplyItems table */
2+
/* tables */
33

4-
table.list.supply_items tbody td.text { text-align: left; }
4+
table.list.supply_items tbody td.name,
5+
table.list.supply_items tbody td.description,
6+
table.list.supply_item_journals tbody td.name,
7+
table.list.resource_items tbody td.name {
8+
text-align: left;
9+
}
510

611
/* Supply item history */
712

8-
table.list.supply_item_journals tbody td.text { text-align: left; }
9-
1013
table.list.supply_item_journals tbody td.stock,
1114
table.list.supply_item_journals thead th.stock {
1215
text-align: right;

0 commit comments

Comments
 (0)