Permalink
Browse files

Add message if no feed defined yet

  • Loading branch information...
1 parent 68e5ee6 commit d964a45deb8233f75d32350aaa5000def1ce27ee @halfdan committed Mar 7, 2013
Showing with 9 additions and 3 deletions.
  1. +2 −1 lang/en.php
  2. +7 −2 templates/index.tpl
View
@@ -19,4 +19,5 @@
'FeedAnnotation_AddFeed' => 'Add Feed',
'FeedAnnotation_Never' => 'Never',
'FeedAnnotation_Website' => 'Website',
-);
+ 'FeedAnnotation_NoFeeds' => 'You have not set up any feeds yet!',
+);
View
@@ -11,7 +11,6 @@
idSite=$idSiteSelected sites=$idSitesAvailable showAllSitesItem=false
showSelectedSite=false siteSelectorId="feedAnnotationSiteSelect"
switchSiteOnSelect=true}
- <p>SELECTED SITE= {$idSiteSelected}</p>
</section>
<div class="entityContainer">
@@ -23,12 +22,18 @@
</tr>
</thead>
<tbody>
+ {if !empty($feeds)}
{foreach from=$feeds key=i item=feed}
<tr>
<td>{$feed.feed_url}</td>
<td>{if $feed.last_processed}{$feed.last_processed|date_format}{else}{'FeedAnnotation_Never'|translate}{/if}</td>
</tr>
{/foreach}
+ {else}
+ <tr>
+ <td colspan="2">{'FeedAnnotation_NoFeeds'|translate}</td>
+ </tr>
+ {/if}
</tbody>
</table>
</div>
@@ -40,4 +45,4 @@
<input type="hidden" value="{$idSiteSelected}" />
<input type="submit" value="Save" class="submit" />
</form>
-{include file="CoreAdminHome/templates/footer.tpl"}
+{include file="CoreAdminHome/templates/footer.tpl"}

0 comments on commit d964a45

Please sign in to comment.