nahornyy

Untitled

Feb 3rd, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.59 KB | None | 0 0
  1. {% if task.accepted -%}
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  3. <html>
  4. <head>
  5. <style type="text/css">
  6. body {
  7. background: #000;
  8. font-family: Tahoma;
  9. }
  10.  
  11. div#main {
  12. margin:0px auto 0px auto;
  13. width:780px;
  14. }
  15.  
  16. /* MOVIE */
  17.  
  18. div.header {
  19. height: 57px;
  20. }
  21.  
  22. div.name {
  23. float: left;
  24. }
  25.  
  26. div.ratings {
  27. float: right;
  28. }
  29.  
  30. div.photo {
  31. border: 1px solid #000;
  32. height: 120px;
  33. width: 100px;
  34. float: right;
  35. background: #fff;
  36. margin-left: 1em;
  37. }
  38.  
  39. h2 {
  40. margin: 0;
  41. font-size: 0.9em;
  42. color: #777;
  43. }
  44.  
  45.  
  46. /* SERIES */
  47.  
  48. div.series, div.movie, div.other {
  49. border: 2px solid #FE7C32;
  50. margin-bottom: 0.5em;
  51. padding: 0.5em;
  52. -moz-border-radius: 5px;
  53. background: #fff;
  54. }
  55.  
  56. div.series h1, div.movie h1, div.other h1 {
  57. margin: 0;
  58. }
  59.  
  60. div.series div.banner {
  61. text-align:center;
  62. }
  63.  
  64. div.series div.basic {
  65. padding: 0.5em;
  66. background: #E0E0E0;
  67.  
  68. }
  69.  
  70. div.season_ep {
  71. float: right;
  72. }
  73.  
  74. div.ep_name {
  75. float: left;
  76. font-weight: bold;
  77. }
  78.  
  79. div.ep_rating {
  80. float: left;
  81. }
  82.  
  83. div.ep_director {
  84. float: right;
  85. }
  86.  
  87. div.details-button {
  88. text-align: center;
  89. }
  90.  
  91. div.actors, div.genres, div.overview {
  92. background: #F7F7F7;
  93. padding: 0.4em;
  94. }
  95.  
  96. div.actors, div.genres, div.overview {
  97. font-size: 0.9em;
  98. }
  99.  
  100. div.actors h2, div.genres h2, div.overview h2
  101. {
  102. font-size: 1em;
  103. margin-top: 0;
  104. margin-bottom: 0.5em;
  105. color: #366D9C;
  106. }
  107.  
  108. div.overview p {
  109. padding: 0;
  110. margin: 0;
  111. }
  112.  
  113. div.actors ul {
  114. list-style: none; margin: 0; padding: 0;
  115. }
  116.  
  117. div.actors ul li {
  118. display: inline;
  119. }
  120.  
  121. div.actors li:after {
  122. content: ",";
  123. }
  124.  
  125. div.actors li:last-child:after {
  126. content: "";
  127. }
  128.  
  129. div.genres ul {
  130. list-style: none; margin: 0; padding: 0;
  131. }
  132.  
  133. div.genres ul li {
  134. display: inline;
  135. }
  136.  
  137. div.genres li:after {
  138. content: ",";
  139. }
  140.  
  141. div.genres li:last-child:after {
  142. content: "";
  143. }
  144.  
  145. a {
  146. color: #366D9C;
  147. }
  148.  
  149. a:hover {
  150. color: #f00;
  151. }
  152.  
  153. div.clear {
  154. clearing: both;
  155. }
  156. </style>
  157.  
  158. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  159. <title>FlexGet</title>
  160. </head>
  161.  
  162. <body>
  163.  
  164. <script type="text/javascript">
  165. function toggle_visibility(c_id, id) {
  166. var e = document.getElementById(id);
  167. if(e.style.display == 'block')
  168. e.style.display = 'none';
  169. else
  170. e.style.display = 'block';
  171. var c = document.getElementById(c_id);
  172. c.style.display = 'none';
  173. }
  174. </script>
  175.  
  176.  
  177. <div id="main">
  178.  
  179. {% for entry in task.accepted %}
  180.  
  181. <!-- HANDLE SERIES -->
  182. {% if entry.series_name is defined %}
  183. <div class="series">
  184.  
  185. <h2>{{ entry.series_name }} - S{{ entry.series_season }}E{{ entry.series_episode }}</h2>
  186. {% if entry.tvdb_banner|d(false) %}
  187. <div class="banner">
  188. <br><img src="{{ entry.tvdb_banner }}" alt="{{ entry.series_name }}" title="{{ entry.series_name }}">
  189. </div>
  190. {% else %}
  191. <h1>В очередь на скачивание был добавлен следующий файл:</h1>
  192. <h2>{{ entry.title }}</h2>
  193.  
  194. {% endif %}
  195.  
  196. <div class="basic">
  197. {% if entry.tvdb_ep_name is defined %}
  198. <div class="ep_name">{{ entry.tvdb_ep_name }}</div>
  199. {% endif %}
  200.  
  201. {% if entry.series_episode is defined and entry.series_season is defined %}
  202. <div class="season_ep">
  203. Сезон:{{ entry.series_season }} Серия:{{ entry.series_episode }}
  204. </div>
  205. {% endif %}
  206.  
  207. <div class="clear">&nbsp;</div>
  208.  
  209. {% if entry.tvdb_ep_rating|d(false) %}
  210. <div class="ep_rating">Rating: {{entry.tvdb_ep_rating}}</div>
  211. {% endif %}
  212.  
  213. {% if entry.tvdb_status is defined %}
  214. <!--
  215. <div class="tvdb_status">Status: {{ entry.tvdb_status }}</div>
  216. -->
  217. {% endif %}
  218.  
  219. {% if entry.tvdb_ep_director is defined %}
  220. <div class="ep_director">Director: {{ entry.tvdb_ep_director }}</div>
  221. {% endif %}
  222.  
  223. <div class="clear">&nbsp;</div>
  224. </div>
  225.  
  226. {% if entry.tvdb_ep_overview|d(false) %}
  227. <div class="overview">
  228. <h2>Overview</h2>
  229. <p>{{ entry.tvdb_ep_overview }}</p>
  230. </div>
  231. {% endif %}
  232.  
  233. <div id="info-{{ loop.index }}" style="display: none;">
  234. <!-- a hack to keep browser from reseting position to top when clicking the Details link -->
  235. <a name="a-{{ loop.index }}" style="display:none;">&nbsp;</a>
  236.  
  237. {% if entry.tvdb_genres is defined and entry.tvdb_genres is iterable %}
  238. <div class="genres">
  239. <h2>Genres</h2>
  240. <ul>
  241. {% for genre in entry.tvdb_genres %}
  242. <li>{{ genre }}</li>
  243. {% endfor %}
  244. </ul>
  245. </div>
  246. {% endif %}
  247.  
  248. {% if entry.series_actors is defined and entry.series_actors is iterable %}
  249. <div class="actors">
  250. <h2>Actors</h2>
  251. <ul>
  252. {% for actor in entry.series_actors %}
  253. <li>{{ actor }}</li>
  254. {% endfor %}
  255. </ul>
  256. </div>
  257. {% endif %}
  258.  
  259. {% if entry.tvdb_ep_guest_stars is defined and entry.tvdb_ep_guest_stars is iterable %}
  260. <div class="actors">
  261. <h2>Guest stars</h2>
  262. <ul>
  263. {% for actor in entry.tvdb_ep_guest_stars %}
  264. <li>{{ actor }}</li>
  265. {% endfor %}
  266. </ul>
  267. </div>
  268. {% endif %}
  269. </div>
  270.  
  271. </div>
  272.  
  273. <!-- HANDLE MOVIES -->
  274. {% elif entry.imdb_url is defined %}
  275. <div class="movie">
  276. <div class="header">
  277. <div class="name">
  278. {% if entry.imdb_name is defined and entry.imdb_year is defined%}
  279. <h1>Следующий фильм был добавлен для скачивания:</h1>
  280. <h2>{{ entry.imdb_name }} ({{ entry.imdb_year }})</h2>
  281. <br><img src="{{ entry.imdb_photo }}" alt="{{ entry.imdb_name }}" title="{{ entry.imdb_name }}">
  282. {% else %}
  283. <h1>Следующий файл был добавлен для скачивания:</h1>
  284. <h2>{{ entry.title }}</h2>
  285.  
  286. {% endif %}
  287. </div>
  288.  
  289. <div class="ratings">
  290. {% if entry.imdb_score is defined %}
  291. <div class="score">
  292. Рейтинг: {{ entry.imdb_score }}
  293. </div>
  294. {% endif %}
  295.  
  296. {% if entry.imdb_votes is defined %}
  297. <div class="votes">
  298. Голосов: {{ entry.imdb_votes }}
  299. </div>
  300. {% endif %}
  301. </div>
  302. <div class="clear">&nbsp;</div>
  303. </div>
  304.  
  305. {% if entry.imdb_plot_outline is defined %}
  306. <div class="overview">
  307. <h2>Описание</h2>
  308. {{ entry.imdb_plot_outline }}
  309. </div>
  310. {% endif %}
  311.  
  312. {% if entry.imdb_genres is defined and entry.imdb_genres is iterable %}
  313. <div class="genres">
  314. <h2>Жанр</h2>
  315. <ul>
  316. {% for genre in entry.imdb_genres %}
  317. <li>{{ genre }}</li>
  318. {% endfor %}
  319. </ul>
  320. </div>
  321. {% endif %}
  322.  
  323. {% if entry.imdb_actors is defined and entry.imdb_actors is iterable %}
  324. <div class="actors">
  325. <h2>Актеры</h2>
  326. <ul>
  327. {% for imdbid, actor in entry.imdb_actors.items() %}
  328. <li><a href="http://www.imdb.com/name/{{ imdbid }}">{{ actor }}</a></li>
  329. {% endfor %}
  330. </ul>
  331. </div>
  332. {% endif %}
  333.  
  334. </div>
  335. {% else %}
  336. <div class="other">
  337. <h1>Файл был добавлен для скачивания:</h1>
  338. <h2>{{ entry.title }}</h2>
  339. </div>
  340. {% endif %}
  341.  
  342. {% endfor %}
  343. </div>
  344.  
  345. </body>
  346. </html>
  347. {% endif %}
Add Comment
Please, Sign In to add comment