PageRenderTime 37ms CodeModel.GetById 32ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/themes/default/templates/blogroll_widget.html

http://n23.googlecode.com/
HTML | 40 lines | 33 code | 0 blank | 7 comment | 0 complexity | 89df3b721282388a3b1366e0a573a7bb MD5 | raw file
 1<li>
 2	<h2>????</h2>
 3	<script type="text/javascript">
 4		<!--
 5		function DeleteBlogLink(id, name){
 6			if(confirm("Really delete \"" + name + "\"?")){
 7				window.location = "/blog/delbloglink?delid=" + id;
 8			}
 9		}
10		//-->
11	</script>
12	<ul>
13		{% for blog in blogroll %}
14		{% if self.is_admin %}
15		<li style="position:relative;">
16			<a href="{{ blog.url }}" title="{{ blog.description|escape }}" target="_blank">{{ blog.text }}</a>
17			<span class="fakelink" style="position:absolute;top:0;right:0;color:#f00;" onclick="DeleteBlogLink('{{ blog.key.id }}', '{{ blog.text|escape }}');">x</span>
18		</li>
19		{% else %}
20		<li><a href="{{ blog.url }}" title="{{ blog.description|escape }}" target="_blank">{{ blog.text }}</a></li>
21		{% endif %}
22		{% endfor %}
23		{% if self.is_admin %} <li><span onclick="$('#addbloglink').toggle();" class="fakelink" style="font-weight:bold;color:#000;">Add</span></li> {% endif %}
24	</ul>
25	{% if self.is_admin %}
26	<form action="/blog/addbloglink" method="post">
27	<ul style="display:none" id="addbloglink">
28		<li>
29			<label for="bloglinkurl">URL</label><br />
30			<input type="text" name="url" id="bloglinkurl" value="http://" style="width:90%" /><br />
31			<label for="bloglinktext">Text</label><br />
32			<input type="text" name="text" id="bloglinktext" style="width:90%" /><br />
33			<label for="bloglinkdescription">Description</label><br />
34			<input type="text" name="description" id="bloglinkdescription" style="width:90%" /><br />
35			<input type="submit" value="Add" />
36		</li>
37	</ul>
38	</form>
39	{% endif %}
40</li>