aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-05 22:44:42 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-05 22:44:42 +0200
commit1dab7402bc47a7992b7f868d587fcb14c579692b (patch)
treec23f504041a0e7ddd17670a0636eb5ac272f9494 /app/views
parent9d4269ddcbac7b2c4efed6e8a572cfb1c0ba8f65 (diff)
parentce063a55770f5384b8201942853e8e1a41e60b59 (diff)
Merge branch '320-template' into dev
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/display.phtml21
-rw-r--r--app/views/helpers/view/normal_view.phtml4
-rw-r--r--app/views/helpers/view/reader_view.phtml3
-rw-r--r--app/views/javascript/actualize.phtml2
4 files changed, 27 insertions, 3 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 5a94376ad..955fc6747 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -35,6 +35,27 @@
</div>
</div>
+ <?php $width = $this->conf->content_width; ?>
+ <div class="form-group">
+ <label class="group-name" for="content_width"><?php echo Minz_Translate::t('content_width'); ?></label>
+ <div class="group-controls">
+ <select name="content_width" id="content_width" required="">
+ <option value="thin" <?php echo $width === 'thin'? 'selected="selected"' : ''; ?>>
+ <?php echo Minz_Translate::t('width_thin'); ?>
+ </option>
+ <option value="medium" <?php echo $width === 'medium'? 'selected="selected"' : ''; ?>>
+ <?php echo Minz_Translate::t('width_medium'); ?>
+ </option>
+ <option value="large" <?php echo $width === 'large'? 'selected="selected"' : ''; ?>>
+ <?php echo Minz_Translate::t('width_large'); ?>
+ </option>
+ <option value="no_limit" <?php echo $width === 'no_limit'? 'selected="selected"' : ''; ?>>
+ <?php echo Minz_Translate::t('width_no_limit'); ?>
+ </option>
+ </select>
+ </div>
+ </div>
+
<div class="form-group">
<label class="group-name" for="theme"><?php echo Minz_Translate::t ('article_icons'); ?></label>
<table>
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml
index b5cdd3039..6f172d579 100644
--- a/app/views/helpers/view/normal_view.phtml
+++ b/app/views/helpers/view/normal_view.phtml
@@ -24,6 +24,8 @@ if (!empty($this->entries)) {
$bottomline_tags = $this->conf->bottomline_tags;
$bottomline_date = $this->conf->bottomline_date;
$bottomline_link = $this->conf->bottomline_link;
+
+ $content_width = $this->conf->content_width;
?>
<div id="stream" class="normal<?php echo $hidePosts ? ' hide_posts' : ''; ?>"><?php
@@ -87,7 +89,7 @@ if (!empty($this->entries)) {
</ul>
<div class="flux_content">
- <div class="content">
+ <div class="content <?php echo $content_width; ?>">
<h1 class="title"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo $item->title (); ?></a></h1>
<?php
$author = $item->author ();
diff --git a/app/views/helpers/view/reader_view.phtml b/app/views/helpers/view/reader_view.phtml
index bda96e86d..e37c78cb4 100644
--- a/app/views/helpers/view/reader_view.phtml
+++ b/app/views/helpers/view/reader_view.phtml
@@ -3,6 +3,7 @@ $this->partial ('nav_menu');
if (!empty($this->entries)) {
$lazyload = $this->conf->lazyload;
+ $content_width = $this->conf->content_width;
?>
<div id="stream" class="reader">
@@ -10,7 +11,7 @@ if (!empty($this->entries)) {
<div class="flux<?php echo !$item->isRead () ? ' not_read' : ''; ?><?php echo $item->isFavorite () ? ' favorite' : ''; ?>" id="flux_<?php echo $item->id (); ?>">
<div class="flux_content">
- <div class="content">
+ <div class="content <?php echo $content_width; ?>">
<?php
$feed = FreshRSS_CategoryDAO::findFeed($this->cat_aside, $item->feed ()); //We most likely already have the feed object in cache
if (empty($feed)) $feed = $item->feed (true);
diff --git a/app/views/javascript/actualize.phtml b/app/views/javascript/actualize.phtml
index 3b12ad774..6a92e5642 100644
--- a/app/views/javascript/actualize.phtml
+++ b/app/views/javascript/actualize.phtml
@@ -9,7 +9,7 @@ var feeds = [<?php
function initProgressBar(init) {
if (init) {
- $("body").after("\<div id=\"actualizeProgress\" class=\"actualizeProgress\">\
+ $("body").after("\<div id=\"actualizeProgress\" class=\"notification good\">\
<?php echo Minz_Translate::t ('refresh'); ?> <span class=\"progress\">0 / " + feed_count + "</span><br />\
<progress id=\"actualizeProgressBar\" value=\"0\" max=\"" + feed_count + "\"></progress>\
</div>");