Skip to content

Commit

Permalink
Merge pull request #775 from 18F/add-tock-change-request
Browse files Browse the repository at this point in the history
Add multiple links to Tock Change Request Form
  • Loading branch information
rogeruiz authored Apr 4, 2018
2 parents 22410a0 + 12ceb1a commit c489dbe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions tock/tock/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ def version_url(request):
response['x_tock_release_name'] = name[:7]

return response

def tock_request_form_url(request):
return {
'x_tock_change_request_form_url': settings.TOCK_CHANGE_REQUEST_FORM,
}
3 changes: 3 additions & 0 deletions tock/tock/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.request',
'tock.context_processors.version_url',
'tock.context_processors.tock_request_form_url',
],
},
},
Expand Down Expand Up @@ -120,3 +121,5 @@
UAA_CLIENT_SECRET = env.get_credential('UAA_CLIENT_SECRET', None)
UAA_AUTH_URL = 'https://login.fr.cloud.gov/oauth/authorize'
UAA_TOKEN_URL = 'https://uaa.fr.cloud.gov/oauth/token'

TOCK_CHANGE_REQUEST_FORM = 'https://docs.google.com/a/gsa.gov/forms/d/1EpVTxXgRNgYfoSA2J8Oi-csjhFKqFm5DT542vIlahpU/viewform?edit_requested=true'
5 changes: 5 additions & 0 deletions tock/tock/templates/_navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
<span>Log out</span>
</a>
</li>
<li>
<a class="usa-external_link usa-nav-link" href="{{ x_tock_change_request_form_url }}" target="_blank">
<span>Tock Change Request Form</span>
</a>
</li>
{% if request.user.is_superuser %}
<li>
<button class="
Expand Down
11 changes: 7 additions & 4 deletions tock/tock/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@
<div class="usa-grid">
<nav class=" usa-width-one-whole">
<ul class="usa-unstyled-list">
<li class="usa-width-one-half">
<p><i>The current release is <code>{{ x_tock_release_name }}</code>, <a href="{{ x_tock_release_url }}" title="{{ x_tock_release_name }}">view this release on GitHub</a></i>.</p>
<li class="usa-width-one-third">
<p><i>The current release is <code>{{ x_tock_release_name }}</code>, <a class="usa-external_link" href="{{ x_tock_release_url }}" title="{{ x_tock_release_name }}" target="_blank">view this release on GitHub</a></i>.</p>
</li>
<li class="usa-width-one-half">
<p><i>For questions, suggestions, or bug reports, please <a href="https://github.com/18f/tock/issues">file an issue</a>.</i></p>
<li class="usa-width-one-third">
<p><i>For questions, suggestions, or bug reports, please <a class="usa-external_link" href="https://github.com/18f/tock/issues" target="_blank">file an issue</a>.</i></p>
</li>
<li class="usa-width-one-third">
<p><i>To change your previously submitted hours in Tock, please <a class="usa-external_link" href="{{ x_tock_change_request_form_url }}" target="_blank">use the Tock Change Request Form</a>.</i></p>
</li>
</ul>
</nav>
Expand Down

0 comments on commit c489dbe

Please sign in to comment.