]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
contenu de la page de config
authornicosomb <nicolas@loeuillet.org>
Sun, 21 Apr 2013 11:11:14 +0000 (13:11 +0200)
committernicosomb <nicolas@loeuillet.org>
Sun, 21 Apr 2013 11:11:14 +0000 (13:11 +0200)
inc/functions.php
js/poche.js
tpl/config.html [new file with mode: 0644]
tpl/config.tpl [deleted file]
tpl/home.html
tpl/tools.html [deleted file]

index df7e9b17f0f2c21fa980b144a75b66833b5da5e9..10005dfe141623cffe39e4a19408845278b9b035 100644 (file)
@@ -232,6 +232,15 @@ function display_view($view, $id = 0, $full_head = 'yes')
 
     switch ($view)
     {
+        case 'config':
+            $tpl->assign('load_all_js', 0);
+            $tpl->draw('head');
+            $tpl->draw('home');
+            $tpl->draw('config');
+            $tpl->draw('js');
+            $tpl->draw('footer');
+            logm('config view');
+        break;
         case 'view':
             $entry = $store->retrieveOneById($id);
 
index d27ecbbacfe7916ca625441c0a61e44dd28c8865..97d9911dccbe3fff59ddccf8aed2a8dfb125c815 100644 (file)
@@ -23,7 +23,6 @@ function toggle_archive(element, id, view_article) {
 }
 
 function sort_links(view, sort) {
-    //$('#content').load('index.php', { view: view, sort: sort, full_head: 'no' } );
     $.get('index.php', { view: view, sort: sort, full_head: 'no' }, function(data) {
       $('#content').html(data);
     });
diff --git a/tpl/config.html b/tpl/config.html
new file mode 100644 (file)
index 0000000..a19a84f
--- /dev/null
@@ -0,0 +1,6 @@
+            <div id="content">
+               <h2>Bookmarklet</h2>
+               <p>Thanks to the bookmarklet, you will be able to easily add a link to your poche. If you don't know how use a bookmarklet, <a href="http://support.mozilla.org/en-US/kb/bookmarklets-perform-common-web-page-tasks">have a look here</a>.</p>
+               <p>Drag & drop this link to your bookmarks bar and have fun with poche.</p>
+                <p><a style="cursor: move; border: 1px dashed grey; background: white;" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></p>
+            </div>
\ No newline at end of file
diff --git a/tpl/config.tpl b/tpl/config.tpl
deleted file mode 100644 (file)
index e69de29..0000000
index 752a571b89df1303d69f3ccd973f44bb29fc4afc..33aec78c5e487a34aa5cc84af2e1d05074dc1106 100644 (file)
@@ -7,10 +7,12 @@
                 <li><a href="index.php" {if="$view == 'index'"}class="current"{/if}>home</a></li>
                 <li><a href="?view=fav" {if="$view == 'fav'"}class="current"{/if}>favorites</a></li>
                 <li><a href="?view=archive" {if="$view == 'archive'"}class="current"{/if}>archive</a></li>
-                <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
+                <li><a href="?view=config" {if="$view == 'config'"}class="current"{/if}>config</a></li>
                 <li><a href="?logout" title="Logout">logout</a></li>
             </ul>
+            {if condition="isset($entries)"} 
             <ul id="sort">
                 <li><img src="img/up.png" onclick="sort_links('{$view}', 'ia');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{$view}', 'id');" title="by date desc" /></li>
                 <li><img src="img/up.png" onclick="sort_links('{$view}', 'ta');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{$view}', 'td');" title="by title desc" /></li>
             </ul>
+            {/if}
\ No newline at end of file
diff --git a/tpl/tools.html b/tpl/tools.html
deleted file mode 100644 (file)
index e69de29..0000000