Source

Redbeard / templates / layout.html

<!DOCTYPE html>
<html class="no-js">
<head>
	<meta charset="utf-8">
	<title>{% block title %}Redbeard{% endblock %}</title>
	<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
	<link rel="stylesheet" href="{{ url_for('static', filename='css/html5reset-1.6.1.css') }}" media="screen" charset="utf-8">
	<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" media="screen" charset="utf-8">
	<link rel="stylesheet" href="{{ url_for('static', filename='css/jquery.confirm.css') }}" media="screen" charset="utf-8">
</head>
<body>
	<header id="masthead">
	{% block header %}
		<a href="{{ url_for('index') }}">
			<h1 id="logo">RedBeard</h1>
		</a>
		{% if session %}
		<aside>
			<header>
				<a href="{{ url_for('setup') }}">
					<h2>Redis connection info</h2>
				</a>
			</header>
			<dl>
				<dt>Host:</dt>
				<dd>{{ session.redis_host }}</dd>
				<dt>Port:</dt>
				<dd>{{ session.redis_port }}</dd>
				<dt>DB:</dt>
				<dd>{{ session.redis_db }}</dd>
				<dt>DB Size:</dt>
				<dd>{{ db_size }} keys</dd>
			</dl>
		</aside>
		{% endif %}
	{% endblock %}
	</header>

	<form action="{{ url_for('change_db') }}" method="post" id="switch_db">
		<fieldset>
			<label for="id_redis_db">Current Redis DB:</label>
			<input type="number" name="redis_db" id="id_redis_db" value="{{ session.redis_db }}" min="0">
		</fieldset>
	</form>

	<ul id="flashes">
	{% with messages = get_flashed_messages() %}
        {% if messages %}
        	{% for message in messages %}
        	<li>{{ message }}</li>
        	{% endfor %}
        {% endif %}
    {% endwith %}
	</ul>
			

	<div id="left">
		<div class="jstest">This application is running with Javascript turned 
			off.</div>
		<header id="keyheader">
			<h1>Keys</h1>
		</header>
		<ul id="keylist"></ul>
		{% block leftblock %}{% endblock %}
	</div>

	<div id="right">
		{% block content %}{% endblock %}
	</div>

	<footer>
	<p>&copy; <a href="http://brack3t.com">Brack3t</a>. Design by <a href="http://www.changemodedesign.com/">Changemode Design</a>. Icons from <a 
			href="http://somerandomdude.com/projects/iconic/">Iconic</a>.</p>
	</footer>
	<script src="{{ url_for('static', filename='js/LAB.min.js') }}"></script>
	<script>
		$LAB
			.script("{{ url_for('static', filename='js/jquery-1.5.1.min.js') }}").wait()
			.script("{{ url_for('static', filename='js/modernizr-1.6.min.js') }}")
			.script("{{ url_for('static', filename='js/jquery.tmpl.min.js') }}")
			.script("{{ url_for('static', filename='js/underscore-min.js') }}")
			.script("{{ url_for('static', filename='js/backbone-min.js') }}")
			.script("{{ url_for('static', filename='js/cacheprovider.js') }}")
			.script("{{ url_for('static', filename='js/jquery.confirm.js') }}")
			.script("{{ url_for('static', filename='js/jquery.hashchange.min.js') }}")
			.script("{{ url_for('static', filename='js/jquery.scrollTo-1.4.2-min.js') }}").wait()
			.script("{{ url_for('static', filename='js/redbeard.js') }}");
	</script>
	<script type="text/x-jquery-tmpl" id="indexTemplate">
		<header id="keyheader">
			<h1>Keys</h1>
		</header>
		<ul id="keylist"></ul>
	</script>
	<script type="text/x-jquery-tmpl" id="keyTemplate">
		<li><a href="#key/${attributes.key}">${attributes.key}</a></li>
	</script>
	<script type="text/x-jquery-tmpl" id="editTemplate">
		<article>
			<form action="{{ url_for('save', key=key) }}" method="post" id="key">
				<header>
					<h2>{{ rtype }}</h2>
					<input type="text" name="key_name" value="${attribute.key}">
					<input type="hidden" name="saved_key_name" value="${attribute.key}">
					{% if ttl %}
					<h3>Key expires in: {{ ttl }} seconds</h3>
					{% endif %}
				</header>
				<textarea name="value" cols="60" rows="20">${attribute.value}</textarea>
				<div id="controls">
					<a id="refresh" href="{{ url_for('key', key=key) }}" title="refresh">refresh</a>
					<a id="delete" href="{{ url_for('delete', key=key) }}" title="delete">delete</a>
					<input type="submit" value="save" title="save">
				</div>
			</form>
		</article>
	</script>
	{% block extra_scripts %}{% endblock %}
</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.