Commit 9a4942c4 authored by Michal Čihař's avatar Michal Čihař

Mention hooks in data page

parent a94be9b3
......@@ -354,6 +354,7 @@ def about(request):
def data_root(request):
return render_to_response('data-root.html', RequestContext(request, {
'hooks_docs': weblate.get_doc_url('api', 'hooks'),
'api_docs': weblate.get_doc_url('api', 'exports'),
'rss_docs': weblate.get_doc_url('api', 'rss'),
'projects': Project.objects.all_acl(request.user),
......@@ -364,6 +365,7 @@ def data_project(request, project):
obj = get_project(request, project)
return render_to_response('data.html', RequestContext(request, {
'object': obj,
'hooks_docs': weblate.get_doc_url('api', 'hooks'),
'api_docs': weblate.get_doc_url('api', 'exports'),
'rss_docs': weblate.get_doc_url('api', 'rss'),
}))
......
......@@ -47,4 +47,12 @@
{% endfor %}
</ul>
{% if hooks_enabled %}
<h3>{% trans "Notification hooks" %}</h3>
<p>
{% blocktrans %}With notification hooks, Weblate will automatically import changes done by your developers and will allow continuous translation. More information is available in <a href="{{ hooks_docs }}">the documentation</a>.{% endblocktrans %}
</p>
{% endif %}
{% endblock %}
......@@ -71,4 +71,12 @@
</tbody>
</table>
{% if hooks_enabled %}
<h3>{% trans "Notification hooks" %}</h3>
<p>
{% blocktrans %}With notification hooks, Weblate will automatically import changes done by your developers and will allow continuous translation. More information is available in <a href="{{ hooks_docs }}">the documentation</a>.{% endblocktrans %}
</p>
{% endif %}
{% endblock %}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment