Skip to content

Commit

Permalink
Fix polls in moderation
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Apr 6, 2011
1 parent fa49592 commit 6c0f6c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/moderation/polls/_poll.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
= article_for poll do |c|
- c.title = link_to("Sondage : #{poll.title}", moderation_poll_path(:id => poll))
- c.body = render("polls/answers_current", :poll => poll)
- c.body = render("polls/answers_current", :poll => poll, :id_suffix => "")
- if current_account && current_account.can_update?(@poll)
- c.actions = link_to("Modifier", edit_moderation_poll_path(:id => @poll), :class => 'action')
2 changes: 1 addition & 1 deletion app/views/polls/_preview.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
= article_for preview do |c|
- c.title = "#{link_to "Sondage", "/sondages"} #{link_to preview.title, "#"}".html_safe
- c.body = render("answers_current", :poll => preview)
- c.body = render("answers_current", :poll => preview, :id_suffix => "")

0 comments on commit 6c0f6c8

Please sign in to comment.