diff options
| author | jpl | 2017-02-08 11:11:24 +0100 |
|---|---|---|
| committer | jpl | 2017-02-08 11:11:24 +0100 |
| commit | ce984d59841c5697f1d4bdd31deda203488bf624 (patch) | |
| tree | 3dc068a17cf7a976c1a16369630b02ea1f145be7 /app | |
| parent | 01803a3e66790b9efc5b6433a860820e6cccf6e4 (diff) | |
| download | chouette-core-ce984d59841c5697f1d4bdd31deda203488bf624.tar.bz2 | |
Refs #2535: updating table links, for archive/unarchive case
Diffstat (limited to 'app')
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index 9b743b929..97d98799f 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -136,6 +136,14 @@ module NewapplicationHelper else content_tag :li, link_to(t("actions.#{action}"), polymorph_url) end + elsif action == :archive + unless item.archived? + content_tag :li, link_to(t("actions.#{action}"), polymorph_url) + end + elsif action == :unarchive + if item.archived? + content_tag :li, link_to(t("actions.#{action}"), polymorph_url) + end else content_tag :li, link_to(t("actions.#{action}"), polymorph_url) end |
