Fixed iconurl integration

This commit is contained in:
Andrey
2013-06-12 11:29:41 +02:00
parent ec5a38d5f5
commit 9a5baff4a0
4 changed files with 36 additions and 39 deletions

View File

@@ -11,7 +11,11 @@
<div class="control-group">
<div id="pub_icon">
<div class="thumb_wrapper">
<img id="img_before" src="{{ feed.getIconUrl() }}" />
<img id="img_before" src="{% if feed.getIconUrl() == false %}
/skins/icons/rss32.gif
{% else %}
/custom/feed_{{ feed.getId() }}.jpg
{% endif %}" />
</div>
</div>
<div id="pub_fileupload">
@@ -145,7 +149,7 @@
{{ publisher.getUser(app).get_email() }}
</td>
<td valign="center" align="center">
{% if publisher.getOwner() == true %}
{% if publisher.isOwner() == true %}
X
{% else %}
<form class="no-ajax form_publication" method="post" action="{{ path('admin_feeds_feed_remove_publisher', { 'id' : feed.getId() }) }}" style="margin:0;">

View File

@@ -64,7 +64,11 @@
<td>
<div style="border:1px solid #ccc; width:22px; height:22px; margin:2px;">
<a href="{{ path('admin_feeds_feed', { 'id' : feed.getId() }) }}">
<img src="{{feed.getIconUrl() ~ '?' ~ random(1000) }}" id="pub_icon" style="margin:3px; width:16px; height:16px;"/>
<img src="{% if feed.getIconUrl() == false %}
/skins/icons/rss32.gif
{% else %}
/custom/feed_{{ feed.getId() }}.jpg
{% endif %}" id="pub_icon" style="margin:3px; width:16px; height:16px;"/>
</a>
</div>
</td>