diff options
author | Alex Legler <alex@a3li.li> | 2016-08-24 15:32:27 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2016-08-24 15:32:27 +0200 |
commit | 27f5e5b30e02ee84a1c0513190a7abe9bef80678 (patch) | |
tree | 99e1cd40f7c60dba7006986d91d96c1c38d596ea /app | |
parent | Send mail via sendmail in prod (diff) | |
download | packages-5-27f5e5b30e02ee84a1c0513190a7abe9bef80678.tar.gz packages-5-27f5e5b30e02ee84a1c0513190a7abe9bef80678.tar.bz2 packages-5-27f5e5b30e02ee84a1c0513190a7abe9bef80678.zip |
Handle removed packages that still appear in changes feeds
Diffstat (limited to 'app')
-rw-r--r-- | app/views/index/_package.html.erb | 6 |
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 -%> |