Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #636 from gem/building-class
Browse files Browse the repository at this point in the history
add 'Building Classification Survey tool' and '?next=' to login form action
  • Loading branch information
nastasi-oq authored Mar 13, 2017
2 parents 9f5459b + d052363 commit 9a73f3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,19 +365,22 @@ AUTH_EXEMPT_URLS = ('/$',
'/vulnerability/engineering_demand_csc?.*',
'/vulnerability/resp_var_par_csc?.*',
'/vulnerability/resp_var_units_csc?.*',
'/taxtweb/')
'/taxtweb/',
'/building-class/')

# Uncomment to allow open registration.
# FIXME: there's no admin validation on new accounts.
# REGISTRATION_OPEN = True

# Uncomment to allow open registration.
# Uncomment to allow open registration and enable EMAIL_BACKEND
# (use '...console.EmailBackend' for devel purposes).
# This setting define in how many days an account
# must be verified by the user.
# ACCOUNT_ACTIVATION_DAYS = 1

# A valid mailserver must be configured to make open registration work.
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# EMAIL_HOST = 'localhost'
# EMAIL_PORT = 25
# DEFAULT_FROM_EMAIL = 'info@%(hostname)s'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans "Sign in" %}</a>
<ul class="dropdown-menu">
<li>
{% if next %}
<form action="{% url "account_login" %}?next={{next}}" method="post" class="sign-in">
{%else%}
<form action="{% url "account_login" %}" method="post" class="sign-in">
{% endif %}
{% csrf_token %}
<label for="id_username">{% trans "Username" %}:</label>
<input id="id_username" name="username" type="text" />
Expand Down
3 changes: 3 additions & 0 deletions openquakeplatform/openquakeplatform/templates/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ <h1>{% trans "OpenQuake Share" %}</h1>
<li>
<a href="{% url 'vulnerability.views.list' %}">The Physical Vulnerability suite</a> allows users to explore and contribute to a comprehensive global vulnerability database that includes fragility, vulnerability, damage-to-loss functions and capacity curves for different types of structure.
</li>
<li>
<a href="{% url 'building_class:home' %}">The Building Classification Survey tool</a> allows users to share information regarding the building stock of a given region.
</li>
</ul>

<b>Offline Inventory Capture Tools</b>
Expand Down

0 comments on commit 9a73f3e

Please sign in to comment.