Skip to content

Commit

Permalink
Default to own SVG widget
Browse files Browse the repository at this point in the history
This avoids connection to external site on the pages.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 14, 2015
1 parent 5a686bb commit d5e5cb9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion weblate/html/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li><a href="{{ object.get_absolute_url }}">{{ object }}</a></li>

<a class="pull-right flip" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image' project=object.slug widget='shields' color='badge' extension='svg' %}" />
<img src="{% url 'widget-image' project=object.slug widget='svg' color='badge' extension='svg' %}" />
</a>
{% endblock %}

Expand Down
4 changes: 2 additions & 2 deletions weblate/html/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ <h3>{% trans "Widgets" %}</h3>
<p>
<a href="{{ widgets_url }}">
{% if object.language %}
<img src="{% url 'widget-image-lang' project=project.slug widget='shields' color='badge' lang=object.language.code extension='svg' %}" />
<img src="{% url 'widget-image-lang' project=project.slug widget='svg' color='badge' lang=object.language.code extension='svg' %}" />
{% else %}
<img src="{% url 'widget-image' project=project.slug widget='shields' color='badge' extension='svg' %}" />
<img src="{% url 'widget-image' project=project.slug widget='svg' color='badge' extension='svg' %}" />
{% endif %}
</a>
</p>
Expand Down
2 changes: 1 addition & 1 deletion weblate/html/subproject.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li><a href="{{ object.get_absolute_url }}">{{ object.name }}</a></li>

<a class="pull-right flip" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image' project=object.project.slug widget='shields' color='badge' extension='svg' %}" />
<img src="{% url 'widget-image' project=object.project.slug widget='svg' color='badge' extension='svg' %}" />
</a>
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion weblate/html/translation.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<li><a href="{{ object.subproject.get_absolute_url }}">{{ object.subproject.name }}</a></li>
<li><a href="{{ object.get_absolute_url }}">{{ object.language }}</a></li>
<a class="pull-right flip" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image-lang' project=object.subproject.project.slug widget='shields' color='badge' lang=object.language.code extension='svg' %}" />
<img src="{% url 'widget-image-lang' project=object.subproject.project.slug widget='svg' color='badge' lang=object.language.code extension='svg' %}" />
</a>
{% endblock %}

Expand Down

0 comments on commit d5e5cb9

Please sign in to comment.