Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix snipe links #838

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading