Skip to content

Commit

Permalink
added limitation to URL number message
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Girard committed Feb 16, 2015
1 parent 2fdebee commit 07eb4a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions templates/zup/index.html
Expand Up @@ -86,7 +86,7 @@ <h4>
* almost any: no facebook, no twitter, no ...
</h4>

{% verbatim %}

<div id="working-area" ng-controller='zupCtrl'>
<form class="pure-form">
<div class="group">
Expand All @@ -101,9 +101,11 @@ <h4>
<div class="number">
2
</div>
<label>Url list</label>
<label>Url list
{% if URLS_LIMIT_ENABLE%}<br>url number limited to {{URLS_LIMIT}}{%endif%}
</label>


{% verbatim %}
<div class="inner">
<div ng-if="!job.id">
<div id="textarea-container">
Expand Down Expand Up @@ -136,10 +138,10 @@ <h4>
download result
</button>

{% endverbatim %}

</form>
</div>
{% endverbatim %}
</div>
</div>

Expand Down
4 changes: 3 additions & 1 deletion zup/views.py
Expand Up @@ -21,6 +21,8 @@ def _helper_shared_context(request, tags=[], d={}):
'TITLE': settings.TITLE,
'DEBUG': settings.DEBUG,
'ENABLE_CDN_SERVICES': settings.ENABLE_CDN_SERVICES,
'LANGUAGE': request.LANGUAGE_CODE
'LANGUAGE': request.LANGUAGE_CODE,
'URLS_LIMIT': settings.URLS_LIMIT,
'URLS_LIMIT_ENABLE': not request.user.is_staff
})
return d

0 comments on commit 07eb4a4

Please sign in to comment.