turn the sidebar into a set of widgets
[shapado:shapado.git] / app / views / widgets / _mod_info.html.haml
1 - if logged_in? && (current_user.mod_of?(current_group) || current_user.can_view_offensive_counts_on?(current_group))
2   -unless @question.flags.count == 0
3     .block
4       %h3
5         = t(:flags, :scope => "activerecord.models")
6       .content
7         = render :partial => "flags/list", :locals => {:flaggeable => @question}
8
9   -unless @question.close_requests.size == 0
10     .block
11       %h3
12         = t(:prural_name, :scope => "close_requests.model")
13       .content
14         = render :partial => "close_requests/list", :locals => {:question => @question}
15
16   -unless @question.open_requests.size == 0
17     .block
18       %h3
19         = t(:prural_name, :scope => "open_requests.model")
20       .content
21         = render :partial => "open_requests/list", :locals => {:question => @question}
22