diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-02-29 23:26:46 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-02-29 23:26:46 +0100 |
commit | 39af9a6ec676fb26d3ff67b72fda601e7cc0fe21 (patch) | |
tree | a6566f5633cb6e27e78d6a10c01471b969759210 | |
parent | wi (diff) | |
download | newspipe-39af9a6ec676fb26d3ff67b72fda601e7cc0fe21.tar.gz newspipe-39af9a6ec676fb26d3ff67b72fda601e7cc0fe21.tar.bz2 newspipe-39af9a6ec676fb26d3ff67b72fda601e7cc0fe21.zip |
wip
-rw-r--r-- | newspipe/web/templates/layout.html | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/newspipe/web/templates/layout.html b/newspipe/web/templates/layout.html index 576c444b..d83333a3 100644 --- a/newspipe/web/templates/layout.html +++ b/newspipe/web/templates/layout.html @@ -45,11 +45,12 @@ <a class="dropdown-item" href="{{ url_for('bookmark.form') }}">{{ _('Add a new bookmark') }}</a> </div> </li> + <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownRSS" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-rss" aria-hidden="true"></i> {{ _('Add a new feed') }}</a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownRSS"> - <form class="px-4 py-3" action="{{ url_for('feed.bookmarklet') }}"> + <form class="navbar-form navbar-left px-4 py-3" action="{{ url_for('feed.bookmarklet') }}"> <label class="sr-only" for="inlineFormInputGroupAPIKey">{{ _('Add a new feed') }}</label> <div class="input-group input-group-inline"> <div class="input-group-prepend"> @@ -61,10 +62,46 @@ </div> </li> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownCategory" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-tag" aria-hidden="true"></i> {{ _('Add a new category') }}</a> + <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownCategory"> + + <form class="navbar-form navbar-left px-4 py-3" action="{{ url_for('category.form') }}" method="POST" name="category"> + <label class="sr-only" for="inlineFormInputGroupAPIKey">{{ _('Add a new category') }}</label> + <div class="input-group input-group-inline"> + <div class="input-group-prepend"> + <input class="form-control" name="name" type="text" placeholder="{{_('Category name')}}" required="required"/> + </div> + <button type="submit" class="btn btn-primary"><i class="fa fa-plus" aria-hidden="true"></i></button> + </div> + </form> + </div> + </li> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownBookmark" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ _('Feed') }}</a> + <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownBookmark"> + <a class="dropdown-item" href="{{ url_for('popular') }}">{{ _('Popular') }}</a> + <a class="dropdown-item" href="{{ url_for('feeds.inactives') }}">{{ _('Inactive') }}</a> + <a class="dropdown-item" href="{{ url_for('articles.history') }}">{{ _('History') }}</a> + <a class="dropdown-item" href="{{ url_for('feeds.feeds') }}">{{ _('All') }}</a> + </div> + </li> - <li class="nav-item"> - <a class="nav-link" href="{{ url_for('logout') }}" title="{{ _('Logout') }}"><i class="fa fa-sign-out" aria-hidden="true"></i></a> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownUser" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user" aria-hidden="true"></i></a> + <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownUser"> + <a class="dropdown-item" href="{{ url_for('user.profile') }}"><i class="fa fa-user" aria-hidden="true"></i> {{ _('Profile') }}</a> + <a class="dropdown-item" href="{{ url_for('user.management') }}"><i class="fa fa-hdd-o" aria-hidden="true"></i> {{ _('Your data') }}</a> + <a class="dropdown-item" href="{{ url_for('about') }}">{{ _('About') }}</a> + <a class="dropdown-item" href="{{ url_for('feeds.feeds') }}">{{ _('All') }}</a> + {% if current_user.is_admin %} + <div class="dropdown-divider"></div> + <a class="dropdown-item" href="{{ url_for('admin.dashboard') }}">{{ _('Dashboard') }}</a> + <div class="dropdown-divider"></div> + {% endif %} + <a class="dropdown-item" href="{{ url_for('logout') }}" title="{{ _('Logout') }}"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a> + </div> </li> {% else %} <li class="nav-item"> |