remove advanced template, rename deluge to classic
This commit is contained in:
parent
0624b686fa
commit
03be7a6d8f
|
@ -87,7 +87,8 @@ class subclassed_render(object):
|
|||
if hasattr(renderer, attr):
|
||||
self.template_cache[attr] = getattr(renderer, attr)
|
||||
return getattr(renderer, attr)
|
||||
raise AttributeError, 'no template named "%s" in base path "%s"' % (attr, self.webui_path)
|
||||
raise AttributeError, 'no template named "%s" in template-dirs:%s' % (attr,
|
||||
[r.loc for r in self.renderers + self.plugin_renderers] )
|
||||
|
||||
def __getitem__(self, item):
|
||||
"for plugins/templates"
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
$def with (title, active_tab=None)
|
||||
<html>
|
||||
<head>
|
||||
<title>Deluge:$title</title>
|
||||
<link rel="icon" href="$base/static/images/deluge_icon.gif" type="image/gif" />
|
||||
<link rel="shortcut icon" href="$base/static/images/deluge_icon.gif" type="image/gif" />
|
||||
<link rel="stylesheet" type="text/css" href="$base/template_style.css" />
|
||||
<script language="javascript" src="$base/static/deluge.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="page">
|
||||
|
||||
<a href='$base/home'>
|
||||
<div id="simple_logo">
|
||||
<div class="title">Deluge</div>
|
||||
<div class="info">$title</div>
|
||||
</div>
|
||||
</a>
|
||||
<div id="main_content">
|
||||
|
||||
<div id="main">
|
||||
<center>
|
|
@ -1,43 +0,0 @@
|
|||
$def with (torrent_list, organize_filters)
|
||||
$:render.header(_('Torrent list'))
|
||||
|
||||
|
||||
<div class="panel" id="toolbar">
|
||||
$:render.part_toolbar()
|
||||
$if organize_filters:
|
||||
$:render.part_organize(organize_filters)
|
||||
</div>
|
||||
|
||||
$:render.part_torrent_list(torrent_list, organize_filters)
|
||||
|
||||
$:render.part_auto_refresh()
|
||||
$:part_stats()
|
||||
|
||||
<div class="panel" id="info_panel_div">
|
||||
<iframe
|
||||
style="border-style:hidden;width:740px;height:200px;"
|
||||
id="torrent_info">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
|
||||
<script language='javascript'>
|
||||
/*on_click_action = open_details;*/
|
||||
on_click_action = on_click_row_js;
|
||||
reselect_rows();
|
||||
var id = state.selected_rows[0];
|
||||
if (id) {
|
||||
open_inner_details(id);
|
||||
}
|
||||
</script>
|
||||
|
||||
<form id='toolbar_form' method="POST" action="changed by javascript">
|
||||
|
||||
</form>
|
||||
|
||||
$:render.footer()
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
'authors':['Martijn Voncken <mvoncken@gmail.com>'],
|
||||
'inherits':['deluge'],
|
||||
'comment':"""
|
||||
The default template.
|
||||
Uses advanced css/javascript.
|
||||
You need a newer standards compliant browser.
|
||||
"""
|
||||
}
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
/*Taken from:
|
||||
http://www.imaputz.com/cssStuff/bigFourVersion.html
|
||||
*/
|
||||
|
||||
/* define height and width of scrollable area. Add 16px to width for scrollbar */
|
||||
div.tableContainer {
|
||||
clear: both;
|
||||
/*border: 1px solid #963;*/
|
||||
height: 285px;
|
||||
overflow: auto;
|
||||
width: 756px;
|
||||
}
|
||||
|
||||
/* Reset overflow value to hidden for all non-IE browsers. */
|
||||
html>body div.tableContainer {
|
||||
overflow: hidden;
|
||||
width: 756px
|
||||
}
|
||||
|
||||
/* define width of table. IE browsers only */
|
||||
div.tableContainer table {
|
||||
float: left;
|
||||
width: 740px;
|
||||
}
|
||||
|
||||
/* define width of table. Add 16px to width for scrollbar. */
|
||||
/* All other non-IE browsers. */
|
||||
html>body div.tableContainer table {
|
||||
width: 756px
|
||||
}
|
||||
|
||||
/* set table header to a fixed position. WinIE 6.x only */
|
||||
/* In WinIE 6.x, any element with a position property set to relative and is a child of */
|
||||
/* an element that has an overflow property set, the relative value translates into fixed. */
|
||||
/* Ex: parent element DIV with a class of tableContainer has an overflow property set to auto */
|
||||
thead.fixedHeader tr {
|
||||
position: relative
|
||||
}
|
||||
|
||||
/* set THEAD element to have block level attributes. All other non-IE browsers */
|
||||
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
|
||||
html>body thead.fixedHeader tr {
|
||||
display: block
|
||||
}
|
||||
|
||||
/* define the table content to be scrollable */
|
||||
/* set TBODY element to have block level attributes. All other non-IE browsers */
|
||||
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
|
||||
/* induced side effect is that child TDs no longer accept width: auto */
|
||||
html>body tbody.scrollContent {
|
||||
display: block;
|
||||
height: 262px;
|
||||
overflow: auto;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
/* make TD elements pretty. Provide alternating classes for striping the table */
|
||||
/* http://www.alistapart.com/articles/zebratables/ */
|
||||
tbody.scrollContent td, tbody.scrollContent tr.normalRow td {
|
||||
/*background: #FFF;*/
|
||||
|
||||
border-bottom: none;
|
||||
border-left: none;
|
||||
/*border-right: 1px solid #CCC;
|
||||
border-top: 1px solid #DDD;*/
|
||||
padding: 2px 3px 3px 4px
|
||||
}
|
||||
|
||||
tbody.scrollContent tr.alternateRow td {
|
||||
/*background: #EEE;*/
|
||||
border-bottom: none;
|
||||
border-left: none;
|
||||
/*border-right: 1px solid #CCC;
|
||||
border-top: 1px solid #DDD;*/
|
||||
padding: 2px 3px 3px 4px
|
||||
}
|
||||
|
||||
/* define width of TH elements: 1st, 2nd, and 3rd respectively. */
|
||||
/* Add 16px to last TH for scrollbar padding. All other non-IE browsers. */
|
||||
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors */
|
||||
html>body thead.fixedHeader th {
|
||||
width: 200px
|
||||
}
|
||||
|
||||
html>body thead.fixedHeader th + th {
|
||||
width: 240px
|
||||
}
|
||||
|
||||
html>body thead.fixedHeader th + th + th {
|
||||
width: 316px
|
||||
}
|
||||
|
||||
/* define width of TD elements: 1st, 2nd, and 3rd respectively. */
|
||||
/* All other non-IE browsers. */
|
||||
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors */
|
||||
html>body tbody.scrollContent td {
|
||||
width: 200px
|
||||
}
|
||||
|
||||
html>body tbody.scrollContent td + td {
|
||||
width: 240px
|
||||
}
|
||||
|
||||
html>body tbody.scrollContent td + td + td {
|
||||
width: 300px
|
||||
}
|
|
@ -1,365 +0,0 @@
|
|||
$def with (style)
|
||||
/*
dirty css.
|
||||
*/
BODY {
background: #304663 url(../../static/images/simple_bg.jpg) repeat-x;
font-family: Bitstream Vera,Verdana;
font-size: 10pt;
margin: 0;
|
||||
padding:0;
|
||||
border:0;
}
/* GENERIC STYLES */
a img {border: 0px}
hr {color: #627082; margin: 15px 0 15px 0;}
|
||||
td {font-family: Bitstream Vera,Verdana;}
|
||||
tr {font-family: Bitstream Vera,Verdana;}
|
||||
table {font-family: Bitstream Vera,Verdana;}
div {font-family: Bitstream Vera,Verdana;}
/* STRUCTURE */
#page {
min-width: 800px;
margin-left: auto;
margin-right: auto;
|
||||
margin: 0;
|
||||
padding:0;
|
||||
font-family: Bitstream Vera,Verdana;
}
#main_content {
background:url(../../static/images/simple_line.jpg) repeat-x;
|
||||
margin: 0;
|
||||
padding:0;
}
#simple_logo {
background:url(../../static/images/simple_logo.jpg) no-repeat;
}
#main {
|
||||
margin: 0;
|
||||
padding:0;
padding-top: 6px;
color: #fff;
}
#main form table {
border: #2a425c 1px solid;
}
#main form table tr {
border: 0px;
}
#main form table tr {
font-size: 16px;
border: 0px;
|
||||
white-space: nowrap;
}
#main form table tr td{
border: 0px;
color: #fff;
font-size: 12px;
white-space: nowrap;
|
||||
font-family: Bitstream Vera,Verdana;
}
#main form table tr a {
color: #8fa6c3;
font-size: 16px;
white-space: nowrap;
}
#main form table tr th a, a:active, a:visited { color: #8fa6c3; text-decoration: none; }
#main form table tr th a:hover {color: #fff; text-decoration: underline;}
#main form table tr td a {
color: #fff;
font-size: 12px;
white-space: nowrap;
|
||||
font-family: Bitstream Vera,Verdana;
}
#main form table tr td a, a:active, a:visited { color: #fff; text-decoration: none;}
#main form table tr td a:hover {color: #fff; text-decoration: underline;}
#main a {
color: #fff;
font-size: 12px;
}
#main a, a:active, a:visited { color: #fff; text-decoration: none;}
#main a:hover {color: #fff; text-decoration: underline;}
.info {
text-align: right;
padding: 0 50px 0 0;
color: #8fa6c3;
font-size: 16px;
letter-spacing: 4px;
font-weight: bold;
}
.title {
color: #dce4ee;
font-size: 32px;
padding: 10px 50px 0 0;
text-align: right;
}
.title a, a:active, a:visited { color: #dce4ee; text-decoration: none;}
.title a:hover {color: #fff; text-decoration: underline;}
/*DISABLED!
|
||||
input{
|
||||
background-color: #37506f;
|
||||
border:1px solid #68a;
|
||||
background: #99acc3;
|
||||
color: #000;
|
||||
-moz-border-radius:5px;
}
|
||||
|
||||
input:hover {
|
||||
background-color:#68a;
|
||||
}
TEXTAREA{
border:1px solid #23344b;
background: #99acc3;
width:480px;
}
*/
.footertext a { color: #c0c0c0; text-decoration:none;}
.footertext a:visited { color: #c0c0c0; text-decoration:none;}
.footertext a:active { color: #c0c0c0; text-decoration:none;}
.footertext a:hover {color: #fff; text-decoration: underline;}
.footertext {
text-align: center;
padding: 60px 0 0 0;
font-size: 8pt;
left: -100px;
font-family: Bitstream Vera,Verdana;
color: #fff;
position: relative;
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
div.progress_bar{
background-color:#4573a5;
overflow:visible;
|
||||
white-space: nowrap;
-moz-border-radius:5px; /*ff only setting*/
}
|
||||
|
||||
div.progress_bar_outer { /*used in table-view*/
|
||||
width:150px;
|
||||
}
|
||||
td.progress_bar {
white-space: nowrap;
}
td.info_label {
font-weight: bold;
}
td {
font-size: 10pt;
color: #d1dae5;
white-space: nowrap;
}
tr {
font-size: 10pt;
color: #d1dae5;
}
|
||||
|
||||
div.panel {
|
||||
padding:10px;
|
||||
width:750px;
|
||||
background-color: #37506f;
|
||||
-moz-border-radius:10px; /*ff-only!*/
|
||||
margin-top:10px;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
|
||||
|
||||
/*New styles:*/
|
||||
|
||||
div.deluge_button {
|
||||
display:inline;
|
||||
}
|
||||
form.deluge_button {
|
||||
display:inline;
|
||||
}
|
||||
button.deluge_button {
|
||||
background-color: #37506f;
|
||||
border:1px solid #68a;
|
||||
|
||||
background: #99acc3;
|
||||
color: #000;
|
||||
vertical-align:middle;
|
||||
-moz-border-radius:7px;
|
||||
}
|
||||
button.deluge_button:hover {
|
||||
background-color:#68a;
|
||||
}
|
||||
div.error {
|
||||
background-color:#FFFFFF;
|
||||
color:#AA0000;
|
||||
font-weight:bold;
|
||||
-moz-border-radius:10px;
|
||||
width:200px;
|
||||
margin-bottom:20px;
|
||||
padding:10px;
|
||||
|
||||
}
|
||||
|
||||
#torrent_table tr:hover {
|
||||
background-color:#68a;
|
||||
}
|
||||
|
||||
tr.altrow0:hover {
|
||||
background-color:#68a;
|
||||
}
|
||||
tr.altrow1:hover {
|
||||
background-color:#68a;
|
||||
}
|
||||
|
||||
tr.altrow1{
|
||||
background-color: #37506f;
|
||||
}
|
||||
|
||||
tr.tab_altrow0{
|
||||
background-color: #304663;
|
||||
}
|
||||
|
||||
tr.tab_altrow1{
|
||||
background-color: #37506f;
|
||||
}
|
||||
|
||||
|
||||
|
||||
tr.torrent_table_selected {
|
||||
background-color:#900;
|
||||
}
|
||||
|
||||
th.torrent_table:hover {
|
||||
background-color:#68a;
|
||||
}
|
||||
th.torrent_table {
|
||||
background-color: #37506f;
|
||||
}
|
||||
|
||||
img.button {
|
||||
margin-bottom:0px;
|
||||
padding:0px;
|
||||
position:relative;
|
||||
top:2px;
|
||||
}
|
||||
|
||||
body.inner {
|
||||
background:none;
|
||||
}
|
||||
|
||||
#stats_panel {
|
||||
-moz-border-radius:0px;
|
||||
width:100%;
|
||||
position:fixed;
|
||||
bottom:0px;
|
||||
left:0px;
|
||||
background-color:#304663;
|
||||
margin: 0;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
height:20px;
|
||||
background-color:#ddd;
|
||||
color:#000;
|
||||
border-style:solid;
|
||||
border:0;
|
||||
border-top:1px;
|
||||
border-color:#000;
|
||||
}
|
||||
|
||||
#about {
|
||||
position:fixed;
|
||||
bottom:0px;
|
||||
right:10px;
|
||||
}
|
||||
|
||||
#info_panel_div2 {
|
||||
position:fixed;
|
||||
bottom:10px;
|
||||
right:0px;
|
||||
width:100%;
|
||||
background-color:#304663;
|
||||
}
|
||||
|
||||
#refresh_panel {
|
||||
-moz-border-radius:0px;
|
||||
width:500px;
|
||||
position:fixed;
|
||||
bottom:0px;
|
||||
right:0px;
|
||||
background-color:#304663;
|
||||
margin: 0;
|
||||
padding:0;
|
||||
text-align:right;
|
||||
height:20px;
|
||||
background-color:#ddd;
|
||||
color:#000;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#refresh_panel a {
|
||||
color:0000FF;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
#refresh_panel a:visited {
|
||||
color:0000FF;
|
||||
}
|
||||
|
||||
#refresh_panel a:hover {
|
||||
color:0000FF;
|
||||
}
|
||||
|
||||
#stats_panel button {
|
||||
background-color:#304663;
|
||||
color:#FFFFFF;
|
||||
border:0;
|
||||
position:relative;
|
||||
top:-2px;
|
||||
height:15px;
|
||||
background-color:#ddd;
|
||||
color:#00F;
|
||||
}
|
||||
#stats_panel button:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#stats_panel img{
|
||||
position:relative;
|
||||
top:3px;
|
||||
margin-right:3px;
|
||||
}
|
||||
|
||||
|
||||
#category_panel {
|
||||
margin-bottom:0;
|
||||
padding-bottom:0;
|
||||
-moz-border-radius-bottomleft:0px;
|
||||
-moz-border-radius-bottomright:0px;
|
||||
padding-right:32px;
|
||||
}
|
||||
|
||||
#toolbar {
|
||||
text-align:left;
|
||||
margin-top:0;
|
||||
padding-top:0;
|
||||
margin-bottom: 30px;
|
||||
-moz-border-radius-topleft:0px;
|
||||
-moz-border-radius-topright:0px;
|
||||
padding-top:5px;
|
||||
padding-bottom:5px;
|
||||
margin-bottom: 15px;
|
||||
padding-left:32px;
|
||||
height:20px;
|
||||
}
|
||||
|
||||
/*
|
||||
#toolbar select{
|
||||
border:1px solid #68a;
|
||||
border:0;
|
||||
background-color: #37506f;
|
||||
color: #FFF;
|
||||
}
|
||||
#toolbar select:hover{
|
||||
background-color:#68a;
|
||||
}
|
||||
*/
|
||||
a.toolbar_btn {
|
||||
width:20px;
|
||||
height:20px;
|
||||
padding-left:3px;
|
||||
padding-top:7px;
|
||||
padding-right:3px;
|
||||
text-decoration: none;
|
||||
margin-bottom:3px;
|
||||
}
|
||||
a.toolbar_btn:hover {
|
||||
background-color:#68a;
|
||||
-moz-border-radius:5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
#toolbar_refresh {
|
||||
margin:0;
|
||||
border:0;
|
||||
background-color:none;
|
||||
padding-left:2px;
|
||||
padding-top:2px;
|
||||
padding-right:2px;
|
||||
text-decoration: none;
|
||||
background-color: #37506f;
|
||||
position:relative;
|
||||
top:5px;
|
||||
}
|
||||
#toolbar_refresh:hover {
|
||||
background-color:#68a;
|
||||
-moz-border-radius:5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
#category_form{
|
||||
display:inline;
|
||||
position:relative;
|
||||
top:-3px;
|
||||
padding-left:20px;
|
||||
}
|
||||
|
||||
|
||||
form { /*all forms!*/
|
||||
margin:0;
|
||||
padding:0;
|
||||
border:0;
|
||||
}
|
||||
|
||||
#config_chooser {
|
||||
margin-left:20px;
|
||||
float: left;
|
||||
width:150px;
|
||||
text-align:left;
|
||||
height:none;
|
||||
}
|
||||
|
||||
#config_chooser ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
|
||||
#config_chooser li:hover {
|
||||
background-color:#68a;
|
||||
}
|
||||
|
||||
#config_chooser li.selected {
|
||||
background-color:#900;
|
||||
}
|
||||
|
||||
#config_panel {
|
||||
height:none;
|
||||
float:left;
|
||||
width:500px;
|
||||
margin-left:20px;
|
||||
}
|
||||
#config_panel th {
|
||||
font-size: 12px;
|
||||
text-align:right;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
|
||||
#config_panel table {
|
||||
background-color:none;
|
||||
}
|
||||
|
||||
ul.errorlist {
|
||||
display:hidden;
|
||||
}
|
||||
|
||||
|
||||
#torrent_list {
|
||||
-moz-border-radius:7px;
|
||||
}
|
||||
|
||||
th.newforms {
|
||||
font-size: 12px;
|
||||
text-align:right;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
|
||||
a.tab_button {
|
||||
color:#FFFFFF;
|
||||
text-decoration:none;
|
||||
}
|
||||
a.tab_button:visited {
|
||||
color:#FFFFFF;
|
||||
}
|
||||
a.tab_button:hover {
|
||||
background-color:#68a;
|
||||
}
|
||||
|
||||
a.tab_button_active {
|
||||
background-color:#900;
|
||||
text-decoration:none;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
a.tab_button_active:visited {
|
||||
background-color:#900;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
|
||||
h3 {
|
||||
background-color:#68a;
|
||||
text-align:left;
|
||||
}
|
||||
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
'authors':['Martijn Voncken <mvoncken@gmail.com>'],
|
||||
'inherits':['deluge','advanced','white'],
|
||||
'inherits':['classic', 'white'],
|
||||
'comment':"""
|
||||
Demo template for external ajax devs.
|
||||
"""
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
'authors':['Martijn Voncken <mvoncken@gmail.com>'],
|
||||
'inherits':['deluge','advanced'],
|
||||
'inherits':['classic'],
|
||||
'comment':"""
|
||||
A more conventional template.
|
||||
css written from scratch
|
||||
|
|
Loading…
Reference in New Issue