diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-01 11:20:58 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-01 11:20:58 +0200 |
commit | b1d5b8b7365264acffab1c120477bbda46532833 (patch) | |
tree | 3e23f316001d89d6d8b74b4815acb9007686f229 | |
parent | fetch.py can now retrieved articles for all user (when no arguments are given). (diff) | |
download | newspipe-b1d5b8b7365264acffab1c120477bbda46532833.tar.gz newspipe-b1d5b8b7365264acffab1c120477bbda46532833.tar.bz2 newspipe-b1d5b8b7365264acffab1c120477bbda46532833.zip |
Tryin the affix sidenav.
-rw-r--r-- | pyaggr3g470r/templates/home.html | 26 | ||||
-rw-r--r-- | pyaggr3g470r/templates/layout.html | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index ce26a954..b4c43b64 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -2,19 +2,19 @@ {% block content %} <div class="container-fluid"> <div classe="row"> - <div class="col-md-3"> - <ul class="nav"> - {% for feed in result|sort(attribute="title")|sort(attribute="nb_unread", reverse=True) %} - <li> - <a href="#{{ feed.id }}"> - {% if feed.nb_unread != 0 %}<span class="badge pull-right">{{ feed.nb_unread }}</span>{% endif %} - {{ feed.title|safe }} - </a> - </li> - {% endfor %} - </ul> - </div> - <div class="col-md-9"> + <nav id="affix-nav" class="col-md-2"> + <ul class="nav sidenav" data-spy="affix" data-offset-top="10" data-offset-bottom="150"> + {% for feed in result|sort(attribute="title")|sort(attribute="nb_unread", reverse=True) %} + <li> + <a href="#{{ feed.id }}"> + {% if feed.nb_unread != 0 %}<span class="badge pull-right">{{ feed.nb_unread }}</span>{% endif %} + {{ feed.title|safe }} + </a> + </li> + {% endfor %} + </ul> + </nav> + <div class="col-md-9 col-md-offset-1"> {% if result|count == 0 %} <h1>{{ _("You don't have any feeds.") }}</h1> <h1><a href="/create_feed/">{{ _('Add some') }}</a>, {{ _('or') }} <a href="/management/#import">{{ _('upload an OPML file.') }}</a></h1> diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 41c1e503..39f4df32 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -23,7 +23,7 @@ deployed on Heroku or on a traditional server." /> </head> {% endblock %} - <body> + <body data-spy="scroll" data-target="#affix-nav"> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> |