Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Fixes views for archival
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed May 14, 2014
1 parent e32e55d commit 8006449
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/ideas/_action.html.haml
Expand Up @@ -68,4 +68,12 @@
%i.fa.fa-medkit
= _('Revive')

- if idea.state_machine.can_archive?
- if can?(:archive, idea)
%li
.btn-group.btn-block
= link_to idea_path(idea, idea: { state: 'archived' }), method: :put, class: 'btn btn-block', title: s_('Tooltip|Archive this idea but keep it for future reference.') do
%i.fa.fa-archive
= _('Archive')

%li.separator
Empty file.

0 comments on commit 8006449

Please sign in to comment.