diff options
Diffstat (limited to 'pyaggr3g470r/templates')
-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"> |