Skip to content

Commit

Permalink
feat: show link to guardian for group access
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed Sep 3, 2024
1 parent a6a2df7 commit 2df68cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ GATE_VPN_SSL_PVTKEY=
NEWRELIC_AGENT_ENABLED=false
NEWRELIC_LICENSE_KEY=
NEWRELIC_APP_NAME=Gate
GATE_GUARDIAN_URL=
5 changes: 5 additions & 0 deletions app/views/groups/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
br
= "*This group does not have any group members" if @group_users.length == 0
br
- if ENV['GATE_GUARDIAN_URL'].present?
p
| Raise access request in
a href="#{ENV['GATE_GUARDIAN_URL']}" target="_blank" Guardian
| to join this group
- if current_user.admin
.h7 Assign members
= form_tag add_user_to_group_path(@group.id), method: :post do
Expand Down

0 comments on commit 2df68cd

Please sign in to comment.