Skip to content
Permalink
Browse files

rack protection updates

  • Loading branch information
BuffaloWill committed Dec 31, 2019
1 parent 994fe23 commit 270f05ca6e51c87bb0867abb0511b61bf2aae182
Showing with 8 additions and 4 deletions.
  1. +1 −0 views/add_user.haml
  2. +3 −2 views/add_user_report.haml
  3. +4 −2 views/list_user.haml
@@ -50,6 +50,7 @@
%option Administrator

%br
%input#authenticity-token{:type => "hidden", :name => "authenticity_token", :value => "#{env['rack.session'][:csrf]}" }
%input.btn.btn-primary{ :type => "submit", :value => "Add" }
%a.btn.btn-secondary{ :href => "/admin/list_user" }
Cancel
@@ -1,5 +1,5 @@
.d-flex.justify-content-between.flex-wrap.flex-md-nowrap.align-items-center.pt-3.pb-2.mb-3.border-bottom
%h1.h2 Editing #{@report.report_name} Report
%h1.h2 Editing #{@report.report_name} Report FFFF

%h2.h4 Current Authors
.table-responsive.col-6.px-0
@@ -14,7 +14,8 @@
- @report.authors.each do |user|
%tr
%td
#{user}
:escaped
#{user}
%td.text-right
%a.btn.btn-sm.btn-danger{ :href => "/admin/del_user_report/#{@report.id}/#{user}" }
%i.far.fa-trash-alt{ :title => "Remove Author" }
@@ -16,9 +16,11 @@
- @users.each do |user|
%tr
%td
#{user.username}
:escaped
#{user.username}
%td
#{user.type} / #{user.auth_type}
:escaped
#{user.type} / #{user.auth_type}
%td.text-right
%a.btn.btn-sm.btn-warning{ :href => "/admin/edit_user/#{user.id}" }
%i.fas.fa-pencil-alt{ :title => "Edit Password" }

0 comments on commit 270f05c

Please sign in to comment.
You can’t perform that action at this time.