aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2016-08-24 15:32:27 +0200
committerAlex Legler <alex@a3li.li>2016-08-24 15:32:27 +0200
commit27f5e5b30e02ee84a1c0513190a7abe9bef80678 (patch)
tree99e1cd40f7c60dba7006986d91d96c1c38d596ea /app
parentSend mail via sendmail in prod (diff)
downloadpackages-27f5e5b30e02ee84a1c0513190a7abe9bef80678.tar.gz
packages-27f5e5b30e02ee84a1c0513190a7abe9bef80678.tar.bz2
packages-27f5e5b30e02ee84a1c0513190a7abe9bef80678.zip
Handle removed packages that still appear in changes feeds
Diffstat (limited to 'app')
-rw-r--r--app/views/index/_package.html.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/index/_package.html.erb b/app/views/index/_package.html.erb
index 431142a..eeb3109 100644
--- a/app/views/index/_package.html.erb
+++ b/app/views/index/_package.html.erb
@@ -1,8 +1,10 @@
+<%- package = Package.find_by(:atom, cp_to_atom(change.category, change.package)); unless package.nil? -%>
<tr>
<td>
<a href="<%= slf(package_path(cp_to_atom(change.category, change.package))) %>">
<span class="text-muted"><%= change.category %></span>/<strong><%= change.package %><%= "-#{change.version}" if change[:version] %></strong>
</a>
</td>
- <td><%= Package.find_by(:atom, cp_to_atom(change.category, change.package)).description %></td>
-</tr> \ No newline at end of file
+ <td><%= package.description %></td>
+</tr>
+<%- end -%>