"Fossies" - the Fresh Open Source Software Archive

Member "buku-4.4/bukuserver/templates/bukuserver/base.html" (15 Jun 2020, 3914 Bytes) of package /linux/privat/buku-4.4.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {% extends "bootstrap/base.html" %}
    2 {% block title %}buku server{% endblock %}
    3 {% block html_attribs %} lang="en"{% endblock %}
    4 
    5 {% block styles %}
    6 {{super()}}
    7 <link rel="icon" href="data:;base64,iVBORw0KGgo=">
    8 {% endblock %}
    9 
   10 {% block navbar %}
   11 {{super()}}
   12 <nav class="navbar navbar-inverse navbar-fixed-top">
   13   <div class="container">
   14     <div class="navbar-header">
   15       <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
   16         <span class="sr-only">Toggle navigation</span>
   17         <span class="icon-bar"></span>
   18         <span class="icon-bar"></span>
   19         <span class="icon-bar"></span>
   20       </button>
   21       <a class="navbar-brand" href="#">buku server</a>
   22     </div>
   23     <div id="navbar" class="collapse navbar-collapse">
   24       <ul class="nav navbar-nav">
   25         <li><a href="{{url_for('index')}}">Home</a></li>
   26         <li><a href="{{url_for('bookmarks-html')}}">Bookmarks</a></li>
   27         <li><a href="{{url_for('get_tags-html')}}">Tags</a></li>
   28         <li><a href="{{url_for('statistic.index')}}">Statistics</a></li>
   29       </ul>
   30       <form class="navbar-form navbar-right" action="{{url_for('search_bookmarks-html')}}" method="GET">
   31         <div class="form-group">
   32           <input type="text" class="form-control" id="inputKeywords" placeholder="Search bookmark" name="keywords-0">
   33         </div>
   34         <button type="submit" class="btn btn-default">Search</button>
   35       </form>
   36     </div><!--/.nav-collapse -->
   37   </div>
   38 </nav>
   39 {% endblock %}
   40 
   41 {% block content %}
   42   <div class="container">{{show_flash_message()}}</div>
   43 {%- endblock %}
   44 
   45 {% macro show_flash_message() %}
   46 {%- with messages = get_flashed_messages(with_categories=True) %}
   47 {%- if messages %}
   48   {% for category, message in messages %}
   49     <div class="alert alert-{{category}}">{{message}} </div>
   50   {% endfor %}
   51 {%- endif %}
   52 {%- endwith %}
   53 {% endmacro %}
   54 
   55 {% macro show_bookmarks(bookmarks) %}
   56 <table class="table" style="table-layout: fixed; width: 100%">
   57   <caption>Bookmark table.</caption>
   58   <thead> <tr> <th>Entry</th> </tr> </thead>
   59   <tbody>
   60     {% for item in bookmarks %}
   61     <tr> <td style="overflow-wrap: break-word;">
   62       <h3>
   63         {% if item.url|netloc %}
   64           <img src='http://www.google.com/s2/favicons?domain={{item.url|netloc}}'/>
   65         {% endif %}
   66         <a href="{{item.url}}">{{item.title}}</a>
   67         <a href="{{url_for('bookmark_api-html', id=item.id)}}">
   68           <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
   69         </a>
   70       </h3>
   71       {% if url_render_mode == 'netloc' %} ({{item.url|netloc}}) {% endif %}
   72       {% if not url_render_mode or url_render_mode == 'full' %}
   73       <p><a href="{{item.url}}">{{item.url}}</a></p>
   74       {% endif %}
   75       <p>{{item.description}}</p>
   76       <p>
   77         {% for tag in item.tags %}
   78         <a class="btn btn-default" href="{{url_for('bookmarks-html', tag=tag)}}" role="button">{{tag}}</a>
   79         {% endfor %}
   80       </p>
   81     </td> <tr>
   82     {% else %}
   83     <tr> <td>No entry Found</td> </tr>
   84     {% endfor %}
   85   </tbody>
   86 </table>
   87 {% endmacro %}
   88 
   89 {% macro show_bookmarks_search_form(checkbox_class=None) %}
   90 <form class="form-horizontal" action="{{url_for('search_bookmarks-html')}}" method="GET">
   91   <div class="form-group">
   92     {{search_bookmarks_form.keywords.label}}
   93     {% for entry in search_bookmarks_form.keywords %}
   94       {{ entry() }}
   95     {% endfor %}
   96   </div>
   97   <div class="{{checkbox_class}}">
   98     <div class="form-group"> {{search_bookmarks_form.all_keywords()}} {{search_bookmarks_form.all_keywords.label}} </div>
   99     <div class="form-group"> {{search_bookmarks_form.deep()}} {{search_bookmarks_form.deep.label}} </div>
  100     <div class="form-group"> {{search_bookmarks_form.regex()}} {{search_bookmarks_form.regex.label}} </div>
  101   </div>
  102   <button type="submit" class="btn btn-default">Search</button>
  103 </form>
  104 {% endmacro %}