Skip to content

Commit

Permalink
Display phone number on site pages in the directory, closes #22.
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Jan 13, 2020
1 parent fabd762 commit 2e629f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
documents
- **Site Changes**
- Display Staff ID on site pages in the directory
- Display phone number on site pages in the directory
- **User Changes**
- Admins can now associate a Staff ID with a user that will display in the
directory and in the menu bar
Expand Down
4 changes: 4 additions & 0 deletions app/views/sites/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
%col
%col
%col.d-none.d-md-table-column
%col.d-none.d-lg-table-column
%thead
%tr
%th.d-none.d-lg-table-cell.text-center.nowrap= order_to "Staff ID", primary: "staffid"
%th= order_to "Name", primary: "name"
%th= order_to "Email", primary: "email"
%th.d-none.d-md-table-cell= order_to "Role", primary: "role"
%th.d-none.d-lg-table-cell Phone

- @users.each do |user|
%tr
Expand All @@ -46,6 +48,8 @@
%td= user.full_name
%td= user.email
%td.d-none.d-md-table-cell= user.role
%td.d-none.d-lg-table-cell
%small= user.phone
.center-horizontally= paginate @users, theme: "bootstrap"
.jumbotron.jumbotron-custom-text.jumbotron-shadow
= icon("far", "comments")
Expand Down

0 comments on commit 2e629f7

Please sign in to comment.