Commit e642f6cccb182080366d5e75ef73d3dcf15d5c6c

  • avatar
  • arvind
  • Mon Sep 30 13:09:46 IST 2013
Style changes and adding bootstrap for the directory page
  • Diff rendering mode:
  • inline
  • side by side

alipi/templates/directory.html

1<!doctype html>1<!doctype html>
2<html>2<html>
3<head>
3<title>Directory of Alipi</title>4<title>Directory of Alipi</title>
5<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
6<style>
7.renarration-item-wrapper{
8border: 2px solid #DDDDDD;
9height: auto;
10width: auto;
11}
12</style>
13</head>
4<body>14<body>
5<div>
15<div class="container">
6<p>List of links narrated</p>16<p>List of links narrated</p>
7{% if name %}17{% if name %}
8{% for i in name %}18{% for i in name %}
9{% if i['about'] != 'undefined' %}19{% if i['about'] != 'undefined' %}
20<div class="renarration-item-wrapper">
10<p><a href="{{i['about']}}">{{ i['about'] }}</a> in <a href="http://y.a11y.in/web?foruri={{ mymodule(i['about']) }}&lang={{i['lang']}}&interactive=1">{{i['lang']}}</a></p>21<p><a href="{{i['about']}}">{{ i['about'] }}</a> in <a href="http://y.a11y.in/web?foruri={{ mymodule(i['about']) }}&lang={{i['lang']}}&interactive=1">{{i['lang']}}</a></p>
11<p style="padding:5px">Narrations contributed at:</p>22<p style="padding:5px">Narrations contributed at:</p>
12{% for x in mylist(myset(i['na'])) %}23{% for x in mylist(myset(i['na'])) %}
13<p><a href="{{x}}" style="padding:5px">{{x}}</a></p>24<p><a href="{{x}}" style="padding:5px">{{x}}</a></p>
14{% endfor %}25{% endfor %}
15{% endif %}26{% endif %}
27</div>
16{% endfor %}28{% endfor %}
17{% else %}29{% else %}
18<p>Hello world</p>
30<p>The directory listing is empty. </p>
19{% endif %}31{% endif %}
20</div>32</div>
21</body>33</body>