Revert to 71858c6020
				
					
				
			This commit is contained in:
		@@ -1,44 +0,0 @@
 | 
			
		||||
<!--
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% extends "index.html" %}
 | 
			
		||||
{% block title %}{{ super() }} - Create{% endblock%}
 | 
			
		||||
{% set active_page = "create" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
	var global_categories = {{json.dumps(categories)|safe}};
 | 
			
		||||
</script>
 | 
			
		||||
<script type="text/javascript" src="{{ url_for ("static", filename="js/create.js") }}" ></script>
 | 
			
		||||
<div class="create_container" >
 | 
			
		||||
	<h4>Add new torrent</h4>
 | 
			
		||||
	<ul class="list-group">
 | 
			
		||||
		<li class="list-group-item">
 | 
			
		||||
			<div class="input-group">
 | 
			
		||||
				<span class="input-group-addon" id="basic-addon1">Torrent name</span>
 | 
			
		||||
				<input type="text" class="form-control" aria-describedby="basic-addon1">
 | 
			
		||||
			</div>
 | 
			
		||||
		</li>
 | 
			
		||||
		<li class="list-group-item">
 | 
			
		||||
			<div class="dropdown">
 | 
			
		||||
				<button class="btn btn-default dropdown-toggle" type="button" id="categories" data-toggle="dropdown" aria-expanded="true">
 | 
			
		||||
					{{getLocalString("english", "please_choose")}}
 | 
			
		||||
					<span class="caret"></span>
 | 
			
		||||
				</button>
 | 
			
		||||
				<ul class="dropdown-menu" id="categories_list" role="menu" aria-labelledby="dropdownMenu1">
 | 
			
		||||
				</ul>
 | 
			
		||||
			</div>
 | 
			
		||||
			<br/>
 | 
			
		||||
			<div class="dropdown">
 | 
			
		||||
				<button class="btn btn-default dropdown-toggle" type="button" id="subcategory" data-toggle="dropdown" aria-expanded="true">
 | 
			
		||||
					{{getLocalString("english", "please_choose")}}
 | 
			
		||||
					<span class="caret"></span>
 | 
			
		||||
				</button>
 | 
			
		||||
				<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1" id="subcategory_list">
 | 
			
		||||
					<li role="presentation"><a role="menuitem" tabindex="-1" href="#">{{getLocalString("english", subcat)}}</a></li>
 | 
			
		||||
				</ul>
 | 
			
		||||
			</div>
 | 
			
		||||
		</li>
 | 
			
		||||
	</ul>
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock content%}
 | 
			
		||||
 | 
			
		||||
@@ -1,57 +0,0 @@
 | 
			
		||||
<!--
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% set navigation_bar = [
 | 
			
		||||
	("/", "search", "Search", "glyphicon-search"),
 | 
			
		||||
	("/categories", "categories", "Categories", "glyphicon-th"),
 | 
			
		||||
	("/create", "create", "Create", "glyphicon-plus")
 | 
			
		||||
] -%}
 | 
			
		||||
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
	<head>
 | 
			
		||||
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
 | 
			
		||||
		<meta charset="utf-8">
 | 
			
		||||
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
			
		||||
		<meta name="viewport" content="width=device-width, initial-scale=1">
 | 
			
		||||
		<link rel="icon" href="favicon.ico">
 | 
			
		||||
		<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 type="text/javascript" src="{{ url_for ("static", filename="js/main.js") }}" ></script>
 | 
			
		||||
	</head>
 | 
			
		||||
 | 
			
		||||
	<body>
 | 
			
		||||
		<script type="text/javascript">
 | 
			
		||||
			var global_strings = {{json.dumps(strings)|safe}}
 | 
			
		||||
		</script>
 | 
			
		||||
		<div class="site-wrapper">
 | 
			
		||||
			<div class="site-wrapper-inner">
 | 
			
		||||
				<div class="cover-container">
 | 
			
		||||
					<div class="masthead clearfix">
 | 
			
		||||
						<div class="inner">
 | 
			
		||||
							<h3 class="masthead-brand"><a href="/">TorrentIndexer</a></h3>
 | 
			
		||||
							<nav>
 | 
			
		||||
								<ul class="nav masthead-nav">
 | 
			
		||||
									{% for href, id, caption, icon in navigation_bar %}
 | 
			
		||||
									<li {% if id == active_page %}class="active"{% endif %}>
 | 
			
		||||
										<a href="{{ href }}">
 | 
			
		||||
											<span class="glyphicon {{ icon|e }}" aria-hidden="true"></span> {{ caption|e }}
 | 
			
		||||
										</a>
 | 
			
		||||
									</li>
 | 
			
		||||
									{% endfor %}
 | 
			
		||||
								</ul>
 | 
			
		||||
							</nav>
 | 
			
		||||
						</div>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="inner cover">
 | 
			
		||||
						{% block content %}{% endblock %}
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
		<script src="{{ url_for("static", filename="js/jquery.js") }}"></script>
 | 
			
		||||
		<script src="{{ url_for("static", filename="js/bootstrap.js") }}"></script>
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -1,9 +0,0 @@
 | 
			
		||||
<!--
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% extends "index.html" %}
 | 
			
		||||
{% block title %}{{ super() }} - Results{% endblock%}
 | 
			
		||||
{% set active_page = "search" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<p>{{results}}</p>
 | 
			
		||||
{% endblock content%}
 | 
			
		||||
@@ -1,26 +0,0 @@
 | 
			
		||||
<!--
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% extends "index.html" %}
 | 
			
		||||
{% block title %}{{ super() }} - Search{% endblock%}
 | 
			
		||||
{% set active_page = "search" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<link href="{{ url_for("static", filename="css/search.css") }}" rel="stylesheet">
 | 
			
		||||
 | 
			
		||||
<div class="search_container">
 | 
			
		||||
	<img class="logo" src="{{ url_for("static", filename="images/Pirates.svg") }}" />
 | 
			
		||||
	<form action="search" >
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<div class="input-group search-box">
 | 
			
		||||
				<input type="text" name="q" class="form-control" placeholder="Seach for…" aria-describedby="basic-addon2">
 | 
			
		||||
				<span class="input-group-btn">
 | 
			
		||||
					<button class="btn btn-default" type="submit">
 | 
			
		||||
						<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
 | 
			
		||||
						Search!
 | 
			
		||||
					</button>
 | 
			
		||||
				</span>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
	</form>
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock content%}
 | 
			
		||||
@@ -2,8 +2,8 @@
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% extends "index.html" %}
 | 
			
		||||
{% block title %}{{ super() }} - Categories{% endblock%}
 | 
			
		||||
{% set active_page = "categories" %}
 | 
			
		||||
{% block title %}{{ super() }} - Categorys{% endblock%}
 | 
			
		||||
{% set active_page = "categorys" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<p>CATEGORYS</p>
 | 
			
		||||
{% endblock content%}
 | 
			
		||||
@@ -2,12 +2,8 @@
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% extends "index.html" %}
 | 
			
		||||
{% block title %}{{ super() }} - Search{% endblock%}
 | 
			
		||||
{% set active_page = "search" %}
 | 
			
		||||
{% block title %}{{ super() }} - Create{% endblock%}
 | 
			
		||||
{% set active_page = "create" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<link href="{{ url_for("static", filename="css/search.css") }}" rel="stylesheet">
 | 
			
		||||
	<form id="tfnewsearch" method="get" action="search">
 | 
			
		||||
		<input type="text" class="tftextinput" name="torrent_name">
 | 
			
		||||
		<input type="submit" value="{{ getLocalString("english", "search") }}" class="tfbutton">
 | 
			
		||||
	</form>
 | 
			
		||||
<p>CREATE</p>
 | 
			
		||||
{% endblock content%}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,10 @@
 | 
			
		||||
{% set language = "english" -%}
 | 
			
		||||
 | 
			
		||||
<!--
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% set navigation_bar = [
 | 
			
		||||
("/", "search", getLocalString(language, "search")),
 | 
			
		||||
	("/categories", "categories", "Categories"),
 | 
			
		||||
	("/create", "create", "Create")
 | 
			
		||||
	("/", "search", "Search", "glyphicon-search"),
 | 
			
		||||
	("/categorys", "categorys", "Categorys", "glyphicon-th"),
 | 
			
		||||
	("/create", "create", "Create", "glyphicon-plus")
 | 
			
		||||
] -%}
 | 
			
		||||
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
@@ -12,25 +13,41 @@
 | 
			
		||||
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
 | 
			
		||||
		<meta charset="utf-8">
 | 
			
		||||
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
			
		||||
		<meta name="viewport" content="width=device-width, initial-scale=1">
 | 
			
		||||
		<link rel="icon" href="favicon.ico">
 | 
			
		||||
		<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 type="text/javascript" src="{{ url_for ("static", filename="js/main.js") }}" ></script>
 | 
			
		||||
	</head>
 | 
			
		||||
 | 
			
		||||
	<body>
 | 
			
		||||
		<script type="text/javascript">
 | 
			
		||||
			var global_strings = {{ json.dumps(strings)|safe }}
 | 
			
		||||
		</script>
 | 
			
		||||
		<div class="header">
 | 
			
		||||
		{% for href, id, caption in navigation_bar %}
 | 
			
		||||
			<a href="{{ href }}">{{ caption }}</a>
 | 
			
		||||
		{% endfor %}
 | 
			
		||||
		<div class="site-wrapper">
 | 
			
		||||
			<div class="site-wrapper-inner">
 | 
			
		||||
				<div class="cover-container">
 | 
			
		||||
					<div class="masthead clearfix">
 | 
			
		||||
						<div class="inner">
 | 
			
		||||
							<h3 class="masthead-brand"><a href="/">TorrentIndexer</a></h3>
 | 
			
		||||
							<nav>
 | 
			
		||||
								<ul class="nav masthead-nav">
 | 
			
		||||
									{% for href, id, caption, icon in navigation_bar %}
 | 
			
		||||
									<li {% if id == active_page %}class="active"{% endif %}>
 | 
			
		||||
										<a href="{{ href|e }}">
 | 
			
		||||
											<span class="glyphicon {{ icon|e }}" aria-hidden="true"></span> {{ caption|e }}
 | 
			
		||||
										</a>
 | 
			
		||||
									</li>
 | 
			
		||||
									{% endfor %}
 | 
			
		||||
								</ul>
 | 
			
		||||
							</nav>
 | 
			
		||||
						</div>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="inner cover">
 | 
			
		||||
						{% block content %}{% endblock %}
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
		{% block content %}
 | 
			
		||||
		<script type="text/javascript">
 | 
			
		||||
			var global_strings = {{json.dumps(strings)|safe}}
 | 
			
		||||
		</script>
 | 
			
		||||
		INDEX
 | 
			
		||||
		{% endblock %}
 | 
			
		||||
 | 
			
		||||
		<script src="{{ url_for("static", filename="js/jquery.js") }}"></script>
 | 
			
		||||
		<script src="{{ url_for("static", filename="js/bootstrap.js") }}"></script>
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
@@ -2,9 +2,8 @@
 | 
			
		||||
vim: ts=2 noexpandtab
 | 
			
		||||
-->
 | 
			
		||||
{% extends "index.html" %}
 | 
			
		||||
{% block title %}{{ super() }} - Search{% endblock%}
 | 
			
		||||
{% block title %}{{ super() }} - Results{% endblock%}
 | 
			
		||||
{% set active_page = "search" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<link href="{{ url_for("static", filename="css/search.css") }}" rel="stylesheet">
 | 
			
		||||
{{results}}
 | 
			
		||||
<p>{{results}}</p>
 | 
			
		||||
{% endblock content%}
 | 
			
		||||
 
 | 
			
		||||
@@ -7,9 +7,20 @@ vim: ts=2 noexpandtab
 | 
			
		||||
{% block content %}
 | 
			
		||||
<link href="{{ url_for("static", filename="css/search.css") }}" rel="stylesheet">
 | 
			
		||||
 | 
			
		||||
<div class="search_container">
 | 
			
		||||
	<img class="logo" src="{{ url_for("static", filename="images/Pirates.svg") }}" />
 | 
			
		||||
	<form id="tfnewsearch" method="get" action="search">
 | 
			
		||||
		<input type="text" class="tftextinput" name="q" size="21" maxlength="120">
 | 
			
		||||
		<input type="submit" value="{{ getLocalString("english", "search") }}" class="tfbutton">
 | 
			
		||||
	<form action="search" >
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<div class="input-group search-box">
 | 
			
		||||
				<input type="text" name="q" class="form-control" placeholder="Seach for…" aria-describedby="basic-addon2">
 | 
			
		||||
				<span class="input-group-btn">
 | 
			
		||||
					<button class="btn btn-default" type="submit">
 | 
			
		||||
						<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
 | 
			
		||||
						Search!
 | 
			
		||||
					</button>
 | 
			
		||||
				</span>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
	</form>
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock content%}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user