Skip to content

Commit

Permalink
Merge pull request sehmaschine#8 from ckesselh/bugfixes/visit_on_site…
Browse files Browse the repository at this point in the history
…_bugfixes

Some small bugfixes related to the "Visit on site" link in scope of stacked and tabular inlines
  • Loading branch information
sehmaschine committed Jul 28, 2011
2 parents f485991 + 4074d91 commit 017d496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grappelli/templates/admin/edit_inline/stacked.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2 class="collapse-handler">{{ inline_admin_formset.opts.verbose_name_plural|ti
id="{{ inline_admin_formset.formset.prefix }}{% if forloop.last %}-empty{% else %}{{ forloop.counter0 }}{% endif %}">
<h3 class="collapse-handler">{{ inline_admin_formset.opts.verbose_name|title }}&nbsp;&nbsp;{% if inline_admin_form.original %}{{ inline_admin_form.original }}{% endif %}</h3>
<ul class="tools">
{% if inline_admin_form.show_url %}<li class="viewsite-link-container"><a href="../../../r/{{ inline_admin_form.original.content_type_id }}/{{ inline_admin_form.original.id }}/" class="icon viewsite-link" title="{% trans 'View on Site' %}" target="_blank"></a></li>{% endif %}
{% if inline_admin_form.show_url %}<li class="viewsite-link-container"><a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/" class="icon viewsite-link" title="{% trans 'View on Site' %}" target="_blank"></a></li>{% endif %}
{% if inline_admin_formset.opts.sortable_field_name %}
<li class="drag-handler-container"><a href="javascript://" class="icon drag-handler" title="{% trans 'Move Item' %}"></a></li>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion grappelli/templates/admin/edit_inline/tabular.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h3 style="display: none;"><b>{{ inline_admin_formset.opts.verbose_name|title }}
<div class="td tools">
{% spaceless %}
<ul class="tools">
{% if inline_admin_form.show_url %}<li class="viewsite-link-container"><a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/" class="icon viewsite-link" title="{% trans 'View on Site' %}"> </a></li>{% endif %}
{% if inline_admin_form.show_url %}<li class="viewsite-link-container"><a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/" class="icon viewsite-link" title="{% trans 'View on Site' %}" target="_blank"> </a></li>{% endif %}
{% if inline_admin_formset.opts.sortable_field_name %}
<li class="drag-handler-container"><a href="javascript://" class="icon drag-handler" title="{% trans 'Move Item' %}"></a></li>
{% endif %}
Expand Down

0 comments on commit 017d496

Please sign in to comment.