Added translation methods to JS and Python

Modified "Create"-form
This commit is contained in:
sqozz
2015-02-15 03:48:39 +01:00
parent dc82260d08
commit 4ba2e1168f
9 changed files with 202 additions and 147 deletions

View File

@ -3,7 +3,7 @@ vim: ts=2 noexpandtab
-->
{% set navigation_bar = [
("/", "search", "Search", "glyphicon-search"),
("/categorys", "categorys", "Categorys", "glyphicon-th"),
("/categories", "categories", "Categories", "glyphicon-th"),
("/create", "create", "Create", "glyphicon-plus")
] -%}
@ -18,9 +18,14 @@ vim: ts=2 noexpandtab
<title>{% block title %}TorrentIndexer{% endblock %}</title>
<link href="{{ url_for("static", filename="css/bootstrap.css") }}" rel="stylesheet">
<link href="{{ url_for("static", filename="css/style.css") }}" rel="stylesheet">
<script src="{{ url_for("static", filename="js/main.js") }}"></script>
</head>
<body>
<script type="text/javascript">
var global_strings = {{json.dumps(strings)|safe}};
var global_categories = {{json.dumps(categories)|safe}};
</script>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">