Tweak item table layout
This commit is contained in:
parent
25ed3f53d3
commit
37dccdd4db
|
@ -148,3 +148,7 @@ label.sidebar-toggle > .oi {
|
|||
.item-content > .raw-content {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.item-table tr > .date {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
|
|
@ -25,14 +25,14 @@
|
|||
</p>
|
||||
<% end %>
|
||||
|
||||
<table class="table table-striped">
|
||||
<table class="table table-striped item-table">
|
||||
<tbody>
|
||||
<%= for item <- @items do %>
|
||||
<tr <%= if item.read do %>class="item-read"<% end %>>
|
||||
<td>
|
||||
<a href="<%= Routes.item_path(@conn, :show, item.id) %>"><%= item.title || "(Untitled)" %></a>
|
||||
</td>
|
||||
<td>
|
||||
<td class="date">
|
||||
<%= if item.date do %>
|
||||
<% {:ok, date} = Timex.format(item.date, "{YYYY}-{0M}-{0D} {0h12}:{m} {AM}") %>
|
||||
<%= date %>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</p>
|
||||
<% end %>
|
||||
|
||||
<table class="table table-striped">
|
||||
<table class="table table-striped item-table">
|
||||
<tbody>
|
||||
<%= for item <- @items do %>
|
||||
<tr <%= if item.read do %>class="item-read"<% end %>>
|
||||
|
@ -15,15 +15,15 @@
|
|||
<%= item.title || "(Untitled)" %>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<%= Routes.feed_path(@conn, :show, item.feed.id) %>">
|
||||
<td class="align-middle">
|
||||
<a href="<%= Routes.feed_path(@conn, :show, item.feed.id) %>" style="white-space: nowrap;">
|
||||
<%= if item.feed.favicon do %>
|
||||
<img src="<%= item.feed.favicon %>" alt="<%= item.feed.title %> favicon" class="favicon">
|
||||
<% end %>
|
||||
<%= item.feed.title || "(Untitled)" %>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<td class="date align-middle">
|
||||
<%= if item.date do %>
|
||||
<% {:ok, date} = Timex.format(item.date, "{YYYY}-{0M}-{0D} {0h12}:{m} {AM}") %>
|
||||
<%= date %>
|
||||
|
|
Loading…
Reference in New Issue