aboutsummaryrefslogtreecommitdiffstats
path: root/static/ui.html
blob: a7bd3a48cf3d33b7acc2a4c9c1fcf8e23e5d459b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
  <head>
    <title>neko rss mode</title>
    <link rel="stylesheet" href="/static/style.css" />
    <script src="/static/jquery-3.3.1.min.js"></script>
    <script src="/static/jquery.tmpl.min.js"></script>
    <script src="/static/underscore-1.8.3.min.js"></script>
    <script src="/static/backbone-1.3.3.min.js"></script>
    <script>
      PUBLIC_VERSION = false;
    </script>
    <script src="/static/ui.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  </head>
  <body>

      <div id="filters">
        <h1 class="logo">neko</h1> 

        <div id="controls"></div>

        <h4 onclick="$('#tags').toggle();">Tags</h4>        
        <ul id="tags" style="display: none;">
        </ul>
        
        <h4 onclick="$('#feeds').toggle();">Feeds</h4>        
        <ul id="feeds" style="display: none;">
          <li><a href="/import/">import</a></li>
        </ul>

    </div>

   <div id="c">
      <div id="items">      
      </div>      
    </div>
    
    <script id="item_template" type="text/jqtmp">
      <h2><a target="_blank" class="i" id="i_${item_id}" href="${item.url}">${item.title }</a> 
    <span class={{if item.starred}}"unstar"{{else}}"star"{{/if}}>★</span>
    <span class="full">{{if item.full}}▼{{else}}►{{/if}}</span>
    </h2>
      <p class="dateline" style="clear: both;">
        <a href="${item.feed_url}">${item.feed_title}</a> | <a href="${item.url}">${item.p_url}</a>
        | ${item.feed_category}
    </p>
      {{if item.header_image}}
      <div class="img"><img src="${item.header_image}" /></div>
      {{/if}}
      <div class="description">
        {{if item.full}}
           {{html item.full_content}}
        {{else}}
           {{html item.description}}
        {{/if}}
      </div>
    </script>

    <script id="tag_template" type="text/jqtmp">
      {{if tag.selected}}[{{/if}}
      ${tag.title}
      {{if tag.selected}}]{{/if}}
    </script>

    <script id="feed_template" type="text/jqtmp">
      <span class="txt">
      {{if feed.title}}
      ${feed.title}
      {{else}}
      ${feed.url}
      {{/if}}
      </span>

      <span class="delete" style="color: red;">[X]</span>
    </script>

    <script id="controls_template" type="text/jqtmp">
      <ul>
        <li>
          <a {{if app.unreadFilter}}style="font-weight: bold;"{{/if}} 
             class="unread_filter">unread</a>
        </li>
        <li>
          <a 
             {{if app.allFilter}}style="font-weight: bold;"{{/if}} 
             class="all_filter">all</a> 
        </li>
        <li>
         <a {{if app.starredFilter}}style="font-weight: bold;"{{/if}}
            class="starred_filter">★ starred</a>
        </li>
        <li>
          <button class="new_feed"> + </button>
        </li>
		<li>
		</li>

	  </ul>
   </script>  
   
</body>
</html>