Skip to content

Commit

Permalink
Merge pull request #838 from WPI-LNL/fix-snipe-links
Browse files Browse the repository at this point in the history
Fix snipe links
  • Loading branch information
alextannenbaum authored May 6, 2024
2 parents e384cda + 402de15 commit 176ef55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inventory/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,6 @@ def snipe_credentials(request):
'title': 'Snipe Login Credentials',
'message': '<span style="font-size: 1.3em"><strong>Username:</strong> ' + settings.SNIPE_GENERAL_USER +
'<br><strong>Password:</strong> ' + settings.SNIPE_GENERAL_PASS + '</span><br><br>'
'<a class="btn btn-primary" href="https://lnl-rt.wpi.edu/snipe" target="_blank">Login Now</a>'
'<a class="btn btn-primary" href="https://lnl-rt.wpi.edu" target="_blank">Login Now</a>'
}
return render(request, 'default.html', context)
2 changes: 1 addition & 1 deletion site_tmpl/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h3 class="panel-title">Quick Links</h3>
{% endif %}
<a class="btn btn-primary" href="https://wpilnl.slack.com/">Slack</a>
{% permission request.user has 'inventory.view_equipment' %}
<a class="btn btn-primary" href="https://lnl-rt.wpi.edu/snipe/">Snipe</a>
<a class="btn btn-primary" href="https://lnl-rt.wpi.edu/">Snipe</a>
{% endpermission %}
{% if request.user.is_superuser %}
<a class="btn btn-danger" href="../admin">Admin</a>
Expand Down

0 comments on commit 176ef55

Please sign in to comment.