Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.
Permalink
Browse files Browse the repository at this point in the history
rack protection updates
  • Loading branch information
BuffaloWill committed Dec 31, 2019
1 parent 994fe23 commit 270f05c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions views/add_user.haml
Expand Up @@ -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
5 changes: 3 additions & 2 deletions views/add_user_report.haml
@@ -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
Expand All @@ -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" }
Expand Down
6 changes: 4 additions & 2 deletions views/list_user.haml
Expand Up @@ -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" }
Expand Down

0 comments on commit 270f05c

Please sign in to comment.