fact_check with Ray's permission check.
needs Ray's new css
This commit is contained in:
1 parent
1a6242edbd
commit
01bda515a6
4 files changed
+35
-11
No files matched your search
+18
-2
@@ -1,7 +1,23 @@
|
||||
<%= content_tag :div ,:id => "users_checkbox_ary", do -%>
|
||||
<% sys_users = User.all -%>
|
||||
<% sys_users.each do |user| -%>
|
||||
<%= label_tag "lab-user-#{user.id}", user.name rescue '' -%>
|
||||
<%= check_box_tag "[users][#{user.id}]", 'true',users.include?(user) -%>
|
||||
|
||||
<div class="checkblock">
|
||||
<div class="checkbox clear">
|
||||
<div class="check-icon">
|
||||
<i class="icons-check-2 icons-white"></i>
|
||||
</div>
|
||||
<div class='member-avatar'>
|
||||
<% if user.avatar? %>
|
||||
<%= image_tag(user.avatar.thumb.url,:class => "member-img") %>
|
||||
<% else %>
|
||||
<%= image_tag "person.png",:class => "member-img" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<%= label_tag "lab-user-#{user.id}", (user.name rescue ''),:class=>"member-name",:id=>nil -%>
|
||||
<%= check_box_tag "[users][#{user.id}]", 'true',users.include?(user),:class => "check" -%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
+6
@@ -1,3 +1,9 @@
|
||||
<% content_for :page_specific_css do %>
|
||||
<%= stylesheet_link_tag "inc/permission-checkbox" %>
|
||||
<% end %>
|
||||
<% content_for :page_specific_javascript do %>
|
||||
<%= javascript_include_tag "inc/permission-checkbox" %>
|
||||
<% end %>
|
||||
<%#= label_tag :fact_check_setting, t("announcement.bulletin.fact_check_setting") %>
|
||||
<%= form_tag('', :remote => true) %>
|
||||
<div class="subnav">
|
||||
|
||||
Reference in new issue
Block a user