Allow see posts history to unlogged users
[shapado:piglops-shapado.git] / app / views / questions / _diff_actions.html.haml
1 =link_to t("global.current"), diff_question_path(post, :curr => number, :prev => "current")
2 -if (number-1) >= 0
3   |
4   =link_to t("global.previous"), diff_question_path(post, :curr => number, :prev => number-1 )
5 -if logged_in? && ((post.wiki && current_user.can_edit_wiki_post_on?(post.group)) || current_user.can_edit_others_posts_on?(post.group) || current_user.can_modify?(post))
6   |
7   =link_to t("wiki.actions.revert"), revert_question_path(post, :version => number), :class => "revert"