Skip to content

Commit 673af0f

Browse files
committed
feat: Add links to documentation on management pages
1 parent efd6d20 commit 673af0f

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
%p
2+
= link_to url, target: 'blank' do
3+
%span.fa.fa-book.icon-space-r-half
4+
= title

app/views/manage/bus_lists/index.html.haml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
= render "layouts/manage/page_title", title: "Bus Lists" do
1+
= render "layouts/manage/page_title", title: "Bus Lists", docs: 'https://coderit.org/hackathon-manager/docs/busses' do
22
= link_to "New Bus List", new_manage_bus_list_path, class: "btn btn-sm btn-outline-secondary"
33

4-
%div
4+
.mb-4
55
%table.table.table-striped.table-hover
66
%thead
77
%tr
@@ -23,3 +23,6 @@
2323
–
2424
= bus_list.needs_bus_captain ? "<strong class=\"text-danger\">Needs bus captain</strong>".html_safe : "No"
2525
%td= bus_list.schools.count
26+
27+
.mb-4
28+
= render 'docs_link', title: 'Bus list documentation', url: 'https://coderit.org/hackathon-manager/docs/busses'

app/views/manage/configs/index.html.haml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
%h5.card-title Environment Variables
4040
%h6.card-subtitle.mb-2.text-muted
4141
Environment variables are configured on the production server.
42+
= render 'docs_link', title: 'Environment variable documentation', url: 'https://coderit.org/hackathon-manager/docs/deployment-environment-variables'
4243
%hr
4344
= render 'config_row', name: 'AWS S3 Bucket for Resumes', key: 'AWS_BUCKET'
4445
= render 'config_row', name: 'AWS S3 Region', key: 'AWS_REGION'

app/views/manage/questionnaires/index.html.haml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@
3838
%hr
3939
4040
= render 'triggered_email_summary'
41+
42+
.mb-4
43+
= render 'docs_link', title: 'Questionnaire documentation', url: 'https://coderit.org/hackathon-manager/docs/questionnaires'

0 commit comments

Comments
 (0)