From 2e2bb2efaff8a47f29d65884636b411816015d2f Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 19 Apr 2018 23:23:36 +0200 Subject: [PATCH] Update actions in admin theme --- Changelog | 1 + resources/views/themes/admin/adminmenu.tpl | 4 +- resources/views/themes/admin/anidb-edit.tpl | 2 +- resources/views/themes/admin/anidb-list.tpl | 6 +- .../themes/admin/binaryblacklist-edit.tpl | 2 +- .../themes/admin/binaryblacklist-list.tpl | 2 +- resources/views/themes/admin/book-edit.tpl | 4 +- resources/views/themes/admin/book-list.tpl | 2 +- .../views/themes/admin/category-edit.tpl | 4 +- .../views/themes/admin/category-list.tpl | 2 +- .../themes/admin/category_regexes-edit.tpl | 4 +- .../themes/admin/category_regexes-list.tpl | 4 +- .../themes/admin/collection_regexes-edit.tpl | 4 +- .../themes/admin/collection_regexes-list.tpl | 4 +- .../views/themes/admin/comments-list.tpl | 6 +- resources/views/themes/admin/console-edit.tpl | 6 +- resources/views/themes/admin/console-list.tpl | 2 +- resources/views/themes/admin/content-add.tpl | 4 +- resources/views/themes/admin/failrel-list.tpl | 2 +- resources/views/themes/admin/game-edit.tpl | 6 +- resources/views/themes/admin/game-list.tpl | 2 +- resources/views/themes/admin/group-bulk.tpl | 2 +- resources/views/themes/admin/group-edit.tpl | 4 +- resources/views/themes/admin/group-list.tpl | 14 +- resources/views/themes/admin/index.tpl | 6 +- resources/views/themes/admin/menu-edit.tpl | 4 +- resources/views/themes/admin/menu-list.tpl | 4 +- resources/views/themes/admin/movie-add.tpl | 4 +- resources/views/themes/admin/movie-edit.tpl | 4 +- resources/views/themes/admin/movie-list.tpl | 4 +- resources/views/themes/admin/music-edit.tpl | 6 +- resources/views/themes/admin/music-list.tpl | 2 +- resources/views/themes/admin/nzb-export.tpl | 2 +- resources/views/themes/admin/nzb-import.tpl | 4 +- resources/views/themes/admin/posters-edit.tpl | 4 +- resources/views/themes/admin/predb.tpl | 272 +----------------- resources/views/themes/admin/preview-list.tpl | 5 +- resources/views/themes/admin/release-edit.tpl | 4 +- resources/views/themes/admin/release-list.tpl | 2 +- .../admin/release_naming_regexes-edit.tpl | 4 +- .../admin/release_naming_regexes-list.tpl | 4 +- resources/views/themes/admin/role-edit.tpl | 4 +- resources/views/themes/admin/role-list.tpl | 6 +- resources/views/themes/admin/sharing.tpl | 2 +- resources/views/themes/admin/show-edit.tpl | 4 +- resources/views/themes/admin/show-list.tpl | 6 +- resources/views/themes/admin/site-stats.tpl | 8 +- resources/views/themes/admin/tmux-edit.tpl | 2 +- resources/views/themes/admin/user-edit.tpl | 6 +- resources/views/themes/admin/user-list.tpl | 10 +- 50 files changed, 105 insertions(+), 371 deletions(-) diff --git a/Changelog b/Changelog index 3a8e29bee..b392c1c1c 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-04-19 DariusIII + * Chg: Update actions in admin theme * Fix: Fix group list pagination * Fix: Add missing group routes * Fix: Fix bugs in redirects diff --git a/resources/views/themes/admin/adminmenu.tpl b/resources/views/themes/admin/adminmenu.tpl index 23f49c94e..63e0633a3 100644 --- a/resources/views/themes/admin/adminmenu.tpl +++ b/resources/views/themes/admin/adminmenu.tpl @@ -18,8 +18,8 @@
  • Menu
  • Categories diff --git a/resources/views/themes/admin/anidb-edit.tpl b/resources/views/themes/admin/anidb-edit.tpl index a8cdd2acf..dd1233f36 100644 --- a/resources/views/themes/admin/anidb-edit.tpl +++ b/resources/views/themes/admin/anidb-edit.tpl @@ -2,7 +2,7 @@
    -
    + {{csrf_field()}} diff --git a/resources/views/themes/admin/anidb-list.tpl b/resources/views/themes/admin/anidb-list.tpl index 9b4157496..f97e56b5e 100644 --- a/resources/views/themes/admin/anidb-list.tpl +++ b/resources/views/themes/admin/anidb-list.tpl @@ -34,12 +34,12 @@ {$anidb.anidbid} {$anidb.title|escape:"htmlall"} + href="{$smarty.const.WWW_TOP}/admin/anidb-edit?id={$anidb.anidbid}">{$anidb.title|escape:"htmlall"} delete | delete | remove + href="{$smarty.const.WWW_TOP}/admin/anidb-remove?id={$anidb.anidbid}">remove {/foreach} diff --git a/resources/views/themes/admin/binaryblacklist-edit.tpl b/resources/views/themes/admin/binaryblacklist-edit.tpl index eeb681832..e6eccf3f4 100644 --- a/resources/views/themes/admin/binaryblacklist-edit.tpl +++ b/resources/views/themes/admin/binaryblacklist-edit.tpl @@ -3,7 +3,7 @@
    {$error}
    {/if}
    - + {{csrf_field()}} diff --git a/resources/views/themes/admin/binaryblacklist-list.tpl b/resources/views/themes/admin/binaryblacklist-list.tpl index aaf3d2900..07f0db7ec 100644 --- a/resources/views/themes/admin/binaryblacklist-list.tpl +++ b/resources/views/themes/admin/binaryblacklist-list.tpl @@ -23,7 +23,7 @@ - diff --git a/resources/views/themes/admin/book-list.tpl b/resources/views/themes/admin/book-list.tpl index c6baf4c1c..d2a3301b3 100644 --- a/resources/views/themes/admin/book-list.tpl +++ b/resources/views/themes/admin/book-list.tpl @@ -19,7 +19,7 @@ {foreach from=$booklist item=book} - diff --git a/resources/views/themes/admin/category-edit.tpl b/resources/views/themes/admin/category-edit.tpl index 52c81ff8a..d55c560ca 100644 --- a/resources/views/themes/admin/category-edit.tpl +++ b/resources/views/themes/admin/category-edit.tpl @@ -5,8 +5,8 @@ {/if}
    - Go back - + Go back + {{csrf_field()}}
    {$bin.id} {$bin.groupname|replace:"alt.binaries":"a.b"}Edit + Edit {$bin.description|truncate:50:"...":true} {$title}
    - + {{csrf_field()}} @@ -58,7 +58,7 @@ {if $book.cover == 1} + src="{$smarty.const.WWW_TOP}/covers/book/{$book.id}.jpg" alt=""/> {/if}
    {$book.id}{$book.title} + {$book.title} {$book.author} {$book.created_at|date_format}
    diff --git a/resources/views/themes/admin/category-list.tpl b/resources/views/themes/admin/category-list.tpl index edc6211f6..06d2f9618 100644 --- a/resources/views/themes/admin/category-list.tpl +++ b/resources/views/themes/admin/category-list.tpl @@ -22,7 +22,7 @@ {foreach $categorylist as $category} - + + href="{$smarty.const.WWW_TOP}/admin/user-edit?id={$result.id}">{$result.username} {/foreach} @@ -82,8 +82,8 @@ {foreach from=$topdownloads item=result} @@ -126,7 +126,7 @@ {foreach from=$topcomments item=result} diff --git a/resources/views/themes/admin/tmux-edit.tpl b/resources/views/themes/admin/tmux-edit.tpl index 941c13aef..a742f957d 100644 --- a/resources/views/themes/admin/tmux-edit.tpl +++ b/resources/views/themes/admin/tmux-edit.tpl @@ -1,7 +1,7 @@

    {$title}

    - + {{csrf_field()}} {if isset($error) && $error != ''} diff --git a/resources/views/themes/admin/user-edit.tpl b/resources/views/themes/admin/user-edit.tpl index 7539fe7fa..780e3ad8b 100644 --- a/resources/views/themes/admin/user-edit.tpl +++ b/resources/views/themes/admin/user-edit.tpl @@ -3,8 +3,8 @@ {if isset($error) && $error != ''}
    {$error}
    {/if} - Go back - + Go back + {{csrf_field()}}
    {$category.id}{$category.title}{$category.title} {if $category.parentid != null} {$category->parent->title} diff --git a/resources/views/themes/admin/category_regexes-edit.tpl b/resources/views/themes/admin/category_regexes-edit.tpl index c8ed65e64..62c5097b1 100644 --- a/resources/views/themes/admin/category_regexes-edit.tpl +++ b/resources/views/themes/admin/category_regexes-edit.tpl @@ -3,9 +3,9 @@
    {$error}
    {/if}
    - + Go back - + {{csrf_field()}} diff --git a/resources/views/themes/admin/category_regexes-list.tpl b/resources/views/themes/admin/category_regexes-list.tpl index 6ed910b68..393b01fa0 100644 --- a/resources/views/themes/admin/category_regexes-list.tpl +++ b/resources/views/themes/admin/category_regexes-list.tpl @@ -31,7 +31,7 @@ + href="{$smarty.const.WWW_TOP}/admin/category_regexes-edit?id={$row.id}">Edit {/if} diff --git a/resources/views/themes/admin/collection_regexes-edit.tpl b/resources/views/themes/admin/collection_regexes-edit.tpl index 3b90a5b17..63efc9ae8 100644 --- a/resources/views/themes/admin/collection_regexes-edit.tpl +++ b/resources/views/themes/admin/collection_regexes-edit.tpl @@ -3,9 +3,9 @@
    {$error}
    {/if}
    - Go back - + {{csrf_field()}}
    {$row.id} {$row.group_regex} Edit {$row.description|truncate:50:"...":true} Delete @@ -43,7 +43,7 @@ Disabled{$row.regex|escape:html|truncate:50:"...":true} + href="{$smarty.const.WWW_TOP}/admin/category_regexes-edit?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true} {$row.categories_id}
    diff --git a/resources/views/themes/admin/collection_regexes-list.tpl b/resources/views/themes/admin/collection_regexes-list.tpl index bfd1adf34..bff561552 100644 --- a/resources/views/themes/admin/collection_regexes-list.tpl +++ b/resources/views/themes/admin/collection_regexes-list.tpl @@ -28,7 +28,7 @@ + href="{$smarty.const.WWW_TOP}/admin/collection_regexes-edit?id={$row.id}">Edit {/if} {/foreach} diff --git a/resources/views/themes/admin/comments-list.tpl b/resources/views/themes/admin/comments-list.tpl index 9a579e27c..063d6a72e 100644 --- a/resources/views/themes/admin/comments-list.tpl +++ b/resources/views/themes/admin/comments-list.tpl @@ -14,7 +14,7 @@ {/foreach} diff --git a/resources/views/themes/admin/console-edit.tpl b/resources/views/themes/admin/console-edit.tpl index 2e1c1a0bf..621c9a478 100644 --- a/resources/views/themes/admin/console-edit.tpl +++ b/resources/views/themes/admin/console-edit.tpl @@ -1,7 +1,7 @@

    {$title}

    - Go back - + Go back + {{csrf_field()}} @@ -86,7 +86,7 @@ {if $console.cover == 1} + src="{$smarty.const.WWW_TOP}/covers/console/{$console.id}.jpg" alt=""/> {/if} diff --git a/resources/views/themes/admin/console-list.tpl b/resources/views/themes/admin/console-list.tpl index e9b25dc4e..7f7727dbd 100644 --- a/resources/views/themes/admin/console-list.tpl +++ b/resources/views/themes/admin/console-list.tpl @@ -16,7 +16,7 @@
    + href="{$smarty.const.WWW_TOP}/admin/console-edit?id={$console.id}">{$console.title} diff --git a/resources/views/themes/admin/content-add.tpl b/resources/views/themes/admin/content-add.tpl index fcad649ba..50447d42b 100644 --- a/resources/views/themes/admin/content-add.tpl +++ b/resources/views/themes/admin/content-add.tpl @@ -1,7 +1,7 @@

    {$title}

    - Go back - + Go back + {{csrf_field()}}
    {$row.id} {$row.group_regex} Edit{$row.description|truncate:50:"...":true} Delete @@ -40,7 +40,7 @@ Disabled{$row.regex|escape:html|truncate:50:"...":true} + href="{$smarty.const.WWW_TOP}/admin/collection_regexes-edit?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}
    {if $comment.users_id > 0} - {$comment.username} + {$comment.username} {else} {$comment.username} {/if} @@ -27,9 +27,9 @@ {/if} {$comment.host} - {if $comment.guid} + {if $comment.guid} view |{/if} - delete + delete
    {$console.id} {$console.title}{$console.platform} {$console.created_at|date_format}
    diff --git a/resources/views/themes/admin/failrel-list.tpl b/resources/views/themes/admin/failrel-list.tpl index b0c702866..76fcd279d 100644 --- a/resources/views/themes/admin/failrel-list.tpl +++ b/resources/views/themes/admin/failrel-list.tpl @@ -19,7 +19,7 @@ {foreach from=$releaselist item=release} diff --git a/resources/views/themes/admin/game-edit.tpl b/resources/views/themes/admin/game-edit.tpl index 76fedff52..19d3a9068 100644 --- a/resources/views/themes/admin/game-edit.tpl +++ b/resources/views/themes/admin/game-edit.tpl @@ -1,7 +1,7 @@

    {$title}

    - Go back - + Go back + {{csrf_field()}}
    {$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true} + href="{$smarty.const.WWW_TOP}/admin/release-edit?id={$release.guid}">{$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true} {$release.category_name} {$release.size|fsize_format:"MB"}
    @@ -69,7 +69,7 @@ {if $game.cover == 1} + src="{$smarty.const.WWW_TOP}/covers/games/{$game.id}.jpg" alt=""/> {/if} diff --git a/resources/views/themes/admin/game-list.tpl b/resources/views/themes/admin/game-list.tpl index 7e9143a7e..8c0f37d4b 100644 --- a/resources/views/themes/admin/game-list.tpl +++ b/resources/views/themes/admin/game-list.tpl @@ -12,7 +12,7 @@ {foreach from=$gamelist item=game} - diff --git a/resources/views/themes/admin/group-bulk.tpl b/resources/views/themes/admin/group-bulk.tpl index e764e1f1c..3b14a655c 100644 --- a/resources/views/themes/admin/group-bulk.tpl +++ b/resources/views/themes/admin/group-bulk.tpl @@ -20,7 +20,7 @@

    View all groups.

    {else}

    Regex of groups to add to the site.

    - + {{csrf_field()}}
    {$game.id}{$game.title} + {$game.title} {$game.genretitle} {$game.created_at|date_format}
    diff --git a/resources/views/themes/admin/group-edit.tpl b/resources/views/themes/admin/group-edit.tpl index 0a0376c05..26d9aa425 100644 --- a/resources/views/themes/admin/group-edit.tpl +++ b/resources/views/themes/admin/group-edit.tpl @@ -1,8 +1,8 @@

    {$title}

    - Go + Go back - + {{csrf_field()}}
    diff --git a/resources/views/themes/admin/group-list.tpl b/resources/views/themes/admin/group-list.tpl index fd9bff016..643e6b6cc 100644 --- a/resources/views/themes/admin/group-list.tpl +++ b/resources/views/themes/admin/group-list.tpl @@ -25,10 +25,10 @@ onclick="return confirm('Are you sure? This will delete all releases, collections/binaries/parts.');">Purge all
    Active Groups | + href="{$smarty.const.WWW_TOP}/admin/group-list-active">Active Groups | Inactive Groups | - All Groups + href="{$smarty.const.WWW_TOP}/admin/group-list-inactive">Inactive Groups | + All Groups
    msg
    @@ -49,7 +49,7 @@ {foreach from=$grouplist item=group}
    @@ -101,10 +101,10 @@ onclick="return confirm('Are you sure? This will delete all releases, collections/binaries/parts.');">Purge all
    Active Groups | + href="{$smarty.const.WWW_TOP}/admin/group-list-active">Active Groups | Inactive Groups | - All Groups + href="{$smarty.const.WWW_TOP}/admin/group-list-inactive">Inactive Groups | + All Groups {else} diff --git a/resources/views/themes/admin/index.tpl b/resources/views/themes/admin/index.tpl index 1b0e0c46c..aae68e344 100644 --- a/resources/views/themes/admin/index.tpl +++ b/resources/views/themes/admin/index.tpl @@ -7,13 +7,13 @@

      -
    1. Configure your site +
    2. Configure your site options. The defaults will work fine.
    3. There is a default list of usenet groups provided. To get started, you will - need to activate some groups. Do not + need to activate some groups. Do not activate every group if its your first time setting this up. Try one or two first. - You can also add your own groups manually. + You can also add your own groups manually.
    4. If you intend to keep using NNTmux, it is best to sign up for your own api keys from TMDB and

      {$title}

      -
      Go back - + Go back + {{csrf_field()}}
    - {$group.name|replace:"alt.binaries":"a.b"} + {$group.name|replace:"alt.binaries":"a.b"}
    {$group.description}
    {$group.first_record_postdate}
    {$group.first_record_postdate|timeago}
    diff --git a/resources/views/themes/admin/menu-list.tpl b/resources/views/themes/admin/menu-list.tpl index 1ecbcf48e..17e8ffbd3 100644 --- a/resources/views/themes/admin/menu-list.tpl +++ b/resources/views/themes/admin/menu-list.tpl @@ -17,14 +17,14 @@ {foreach from=$menulist item=menu} - + {/foreach} diff --git a/resources/views/themes/admin/movie-add.tpl b/resources/views/themes/admin/movie-add.tpl index c579352f1..16805a1b6 100644 --- a/resources/views/themes/admin/movie-add.tpl +++ b/resources/views/themes/admin/movie-add.tpl @@ -1,10 +1,8 @@

    {$title}

    - + {{csrf_field()}} - -
    {$menu.title|escape:"htmlall"} + href="{$smarty.const.WWW_TOP}/admin/menu-edit?id={$menu.id}">{$menu.title|escape:"htmlall"} {$menu.href} {$menu.tooltip} {if $menu.role == 0}Guests{elseif $menu.role == 1}Users{elseif $menu.role == 2}Admin{else}Other{/if} {$menu.ordinal} {if $menu.newwindow == 1}Yes{else}No{/if}deletedelete
    diff --git a/resources/views/themes/admin/movie-edit.tpl b/resources/views/themes/admin/movie-edit.tpl index cf18f7022..ee0efb3b4 100644 --- a/resources/views/themes/admin/movie-edit.tpl +++ b/resources/views/themes/admin/movie-edit.tpl @@ -1,8 +1,8 @@

    {$title}

    - Go + Go back - + {{csrf_field()}} diff --git a/resources/views/themes/admin/movie-list.tpl b/resources/views/themes/admin/movie-list.tpl index c3ffbb5f0..222c46fca 100644 --- a/resources/views/themes/admin/movie-list.tpl +++ b/resources/views/themes/admin/movie-list.tpl @@ -19,13 +19,13 @@ title="View in IMDB">{$movie.imdbid}
    - {/foreach} diff --git a/resources/views/themes/admin/music-edit.tpl b/resources/views/themes/admin/music-edit.tpl index cf1457e09..3de4db22f 100644 --- a/resources/views/themes/admin/music-edit.tpl +++ b/resources/views/themes/admin/music-edit.tpl @@ -1,8 +1,8 @@

    {$title}

    - Go + Go back - + {{csrf_field()}} @@ -94,7 +94,7 @@ {if $music.cover == 1} + src="{$smarty.const.WWW_TOP}/covers/music/{$music.id}.jpg" alt=""/> {/if} diff --git a/resources/views/themes/admin/music-list.tpl b/resources/views/themes/admin/music-list.tpl index 9d3c234ea..39e10c3fa 100644 --- a/resources/views/themes/admin/music-list.tpl +++ b/resources/views/themes/admin/music-list.tpl @@ -15,7 +15,7 @@ {foreach from=$musiclist item=music}
    - diff --git a/resources/views/themes/admin/nzb-export.tpl b/resources/views/themes/admin/nzb-export.tpl index 1b798c334..659896d54 100644 --- a/resources/views/themes/admin/nzb-export.tpl +++ b/resources/views/themes/admin/nzb-export.tpl @@ -14,7 +14,7 @@

    - + {{csrf_field()}}
    {$movie.tmdbid}{$movie.title} + {$movie.title} ({$movie.year}) {$movie.cover} {$movie.backdrop} {$movie.created_at|date_format} Update + href="{$smarty.const.WWW_TOP}/admin/movie-add?id={$movie.imdbid}&update=1">Update
    {$music.id}{$music.title} + {$music.title} ({$music.year}) {$music.artist} {$music.created_at|date_format}
    diff --git a/resources/views/themes/admin/nzb-import.tpl b/resources/views/themes/admin/nzb-import.tpl index 52d1f6423..3f61310e3 100644 --- a/resources/views/themes/admin/nzb-import.tpl +++ b/resources/views/themes/admin/nzb-import.tpl @@ -19,7 +19,7 @@
    Import From Directory - + {{csrf_field()}}
    @@ -57,7 +57,7 @@
    Import From Browser - + {{csrf_field()}}
    diff --git a/resources/views/themes/admin/posters-edit.tpl b/resources/views/themes/admin/posters-edit.tpl index 1d99038b3..030d83574 100644 --- a/resources/views/themes/admin/posters-edit.tpl +++ b/resources/views/themes/admin/posters-edit.tpl @@ -1,7 +1,7 @@

    {$title}

    - Go back - + Go back + {{csrf_field()}}
    diff --git a/resources/views/themes/admin/predb.tpl b/resources/views/themes/admin/predb.tpl index 1538a27c4..98c8d1da7 100755 --- a/resources/views/themes/admin/predb.tpl +++ b/resources/views/themes/admin/predb.tpl @@ -18,8 +18,6 @@ - - @@ -35,7 +33,7 @@ {if isset($result.guid)} + href="{$smarty.const.WWW_TOP}/details/{$result.guid}"> 1}NUKED: {$result.nukereason|escape:"htmlall"}{else}{$result.title|escape:"htmlall"}{/if}">{$result.title|escape:"htmlall"} {else} @@ -43,274 +41,12 @@ title="{if $result.nuked == 1}UNNUKED: {$result.nukereason|escape:"htmlall"}{elseif $result.nuked > 1}NUKED: {$result.nukereason|escape:"htmlall"}{else}{$result.title|escape:"htmlall"}{/if}">{$result.title|escape:"htmlall"} {/if} - - @@ -356,7 +92,7 @@ href="{$site->dereferrer_link}http://binsearch.info/?q={$result.title}" target="_blank" > - +   diff --git a/resources/views/themes/admin/preview-list.tpl b/resources/views/themes/admin/preview-list.tpl index 66e930c97..60c9ff8c3 100644 --- a/resources/views/themes/admin/preview-list.tpl +++ b/resources/views/themes/admin/preview-list.tpl @@ -29,11 +29,10 @@ {foreach from=$releaselist item=release} - {/foreach} diff --git a/resources/views/themes/admin/release-edit.tpl b/resources/views/themes/admin/release-edit.tpl index edb910d4c..3e0244562 100644 --- a/resources/views/themes/admin/release-edit.tpl +++ b/resources/views/themes/admin/release-edit.tpl @@ -1,7 +1,7 @@

    {$title}

    - Go back - + Go back + {{csrf_field()}}
    Date Title Category Source Reqid Size Files - {* Console *} - {* Xbox 360 *} - {if $result.category == 'XBOX360'} - Console - Xbox - 360 - {/if} - {* Movies *} - {if in_array($result.category, array('Movies'))} - Movies - {/if} - {* SD *} - {if in_array($result.category, array('movies-sd', 'Movies: STD', 'XVid'))} - Movies - SD - {/if} - {* HD *} - {if in_array($result.category, array('Movies: HD', 'X264'))} - Movies - HD - {/if} - {* BluRay *} - {if in_array($result.category, array('BLURAY'))} - Movies - BluRay - {/if} - {* DVD *} - {if in_array($result.category, array('DVDR', 'Movies: DVD'))} - DVD - {/if} - {* Audio *} - {if in_array($result.category, array('music-audio'))} - Audio - {/if} - {* MP3 *} - {if in_array($result.category, array('MP3', 'Music: MP3'))} - MP3 - {/if} - {* Video *} - {if in_array($result.category, array('MVid', 'Music: MVid'))} - Music - Videos - {/if} - {* Audiobook *} - {if in_array($result.category, array('audiobook', 'Audiobook'))} - Audiobook - {/if} - {* Lossless *} - {if in_array($result.category, array('FLAC', 'Music: FLAC'))} - Lossless - Music - {/if} - {* PC *} - {* 0day *} - {if in_array($result.category, array('0DAY', 'APPS', 'Apps: PC', 'Apps: Linux', 'DOX'))} - PC - 0DAY - {/if} - {* Mac *} - {if in_array($result.category, array('Apps: MAC', 'Games: MAC'))} - PC - Mac - {/if} - {* Phone-Other *} - {if in_array($result.category, array('Apps: Phone', 'PDA'))} - Phone - Other - {/if} - {* Games *} - {if in_array($result.category, array('GAMES', 'Games: PC', 'Games: Other'))} - PC - Games - {/if} - {* TV *} - {if in_array($result.category, array('TV'))} - TV - {/if} - {* SD *} - {if in_array($result.category, array('TV-DVDRIP', 'tv-sd', 'TV: STD', 'TV-XVid'))} - SDTV - {/if} - {* HD *} - {if in_array($result.category, array('tv-hd', 'TV: HD', 'TV-x264', 'TV-X264'))} - HDTV - {/if} - {* XXX *} - {if in_array($result.category, array('XXX'))} - XXX - {/if} - {* DVD *} - {if in_array($result.category, array('XXX: DVD'))} - XXX - DVD - {/if} - {* XviD *} - {if in_array($result.category, array('XXX: SD-CLIPS', 'XXX: MOVIES-SD'))} - XXX - SD - {/if} - {* x264 *} - {if in_array($result.category, array('XXX: HD-CLIPS', 'XXX: MOVIES-HD'))} - XXX - HD - {/if} - {* Other *} - {if in_array($result.category, array('xxx-videos'))} - XXX - Other - {/if} - {* Imageset *} - {if in_array($result.category, array('XXX-IMGSET'))} - XXX - Imagesets - {/if} - {* Books *} - {if in_array($result.category, array('EBOOK'))} - Ebooks - {/if} - {* Other *} - {if in_array($result.category, array('Other: E-Books'))} - Ebooks - Other - {/if} - {if in_array($result.category, array('', 'PRE'))} - N/A - {else} - {$result.category} - {/if} - - {if $result.source == abgx} - - abgx.net - - {/if} - {if in_array($result.source, array('abErotica', 'abMooVee', 'abTeeVee', 'abForeign'))} - - $result.source - - {/if} - {if $result.source|strpos:'#a.b.' != false} - - $result.source - - {/if} - {if $result.source == omgwtfnzbs} - - omgwtfnzbs - - {/if} - {if $result.source == orlydb} - - ORLYDB - - {/if} - {if $result.source == predbme} - - PreDB - - {/if} - {if $result.source == prelist} - - Prelist - - {/if} - {if $result.source == "#Pre@zenet"} - - Zenet IRC - - {/if} - {if $result.source == "#pre@corrupt"} - - Corrupt-Net - - {/if} - {if $result.source == srrdb} - - srrDB - - {/if} - {if $result.source == "#scnzb"} - - srrDB - - {/if} - {if $result.source == "#tvnzb"} - - srrDB - - {/if} - {if $result.source == "usenet-crawler"} - - Usenet-Crawler - - {/if} - {if $result.source == womble} - - Womble - - {/if} - {if $result.source == zenet} - - ZEnet - - {else} - {$result.source} - {/if} - {if is_numeric($result.requestid) && $result.requestid != 0} @@ -345,7 +81,7 @@ href="{$site->dereferrer_link}http://nzbindex.com/search/?q={$result.title}" target="_blank" > - +  
    - +
    - {$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true} + {$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true}
    diff --git a/resources/views/themes/admin/release-list.tpl b/resources/views/themes/admin/release-list.tpl index 98bdc546f..c9875f6b5 100644 --- a/resources/views/themes/admin/release-list.tpl +++ b/resources/views/themes/admin/release-list.tpl @@ -19,7 +19,7 @@ {foreach from=$releaselist item=release} diff --git a/resources/views/themes/admin/release_naming_regexes-edit.tpl b/resources/views/themes/admin/release_naming_regexes-edit.tpl index 5eac49648..3b9f7abdf 100644 --- a/resources/views/themes/admin/release_naming_regexes-edit.tpl +++ b/resources/views/themes/admin/release_naming_regexes-edit.tpl @@ -3,9 +3,9 @@ {if isset($error) && $error != ''}
    {$error}
    {/if} - Go back - + {{csrf_field()}}
    {$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true} + href="{$smarty.const.WWW_TOP}/radmin/elease-edit?id={$release.guid}">{$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true} {$release.category_name} {$release.size|fsize_format:"MB"}
    diff --git a/resources/views/themes/admin/release_naming_regexes-list.tpl b/resources/views/themes/admin/release_naming_regexes-list.tpl index f09e3e2d3..0e9cae9b9 100644 --- a/resources/views/themes/admin/release_naming_regexes-list.tpl +++ b/resources/views/themes/admin/release_naming_regexes-list.tpl @@ -28,7 +28,7 @@ {/if} {/foreach} diff --git a/resources/views/themes/admin/role-edit.tpl b/resources/views/themes/admin/role-edit.tpl index e2703c609..00f44c43b 100644 --- a/resources/views/themes/admin/role-edit.tpl +++ b/resources/views/themes/admin/role-edit.tpl @@ -1,8 +1,8 @@

    {$title}

    - Go back - + Go back + {{csrf_field()}}
    {$row.id} {$row.group_regex} Edit + href="{$smarty.const.WWW_TOP}/admin/release_naming_regexes-edit?id={$row.id}">Edit {$row.description|truncate:50:"...":true} Disabled{$row.regex|escape:html|truncate:50:"...":true} + href="{$smarty.const.WWW_TOP}/admin/release_naming_regexes-edit?id={$row.id}">{$row.regex|escape:html|truncate:50:"...":true}
    diff --git a/resources/views/themes/admin/role-list.tpl b/resources/views/themes/admin/role-list.tpl index c03d730c8..e7666eedc 100644 --- a/resources/views/themes/admin/role-list.tpl +++ b/resources/views/themes/admin/role-list.tpl @@ -19,7 +19,7 @@ {foreach from=$userroles item=role} - + @@ -28,8 +28,8 @@ - {/foreach} diff --git a/resources/views/themes/admin/sharing.tpl b/resources/views/themes/admin/sharing.tpl index 94916b0c1..35d05ad73 100644 --- a/resources/views/themes/admin/sharing.tpl +++ b/resources/views/themes/admin/sharing.tpl @@ -10,7 +10,7 @@
    msg
    {if $local} - + {{csrf_field()}}
    Local sharing settings. diff --git a/resources/views/themes/admin/show-edit.tpl b/resources/views/themes/admin/show-edit.tpl index 15f46e333..07f57f5c0 100755 --- a/resources/views/themes/admin/show-edit.tpl +++ b/resources/views/themes/admin/show-edit.tpl @@ -1,7 +1,7 @@

    {$title}

    - Go back - + Go back + {{csrf_field()}}
    {$role.name}{$role.name} {$role.apirequests} {$role.downloadrequests} {$role.defaultinvites}{$role.donation} {$role.addyears} {if $role.isdefault=="1"}Yes{else}No{/if}edit {if $role.id>"3"}delete{/if} + edit {if $role.id>"3"}delete{/if}
    diff --git a/resources/views/themes/admin/show-list.tpl b/resources/views/themes/admin/show-list.tpl index 7866b79b0..be65e3c1a 100755 --- a/resources/views/themes/admin/show-list.tpl +++ b/resources/views/themes/admin/show-list.tpl @@ -26,7 +26,7 @@ + href="{$smarty.const.WWW_TOP}/admin/show-remove?id={$tvshow.id}">remove {/foreach}
    {$tvshow.id} {$tvshow.title|escape:"htmlall"} + href="{$smarty.const.WWW_TOP}/admin/show-edit?id={$tvshow.id}">{$tvshow.title|escape:"htmlall"} {$tvshow.started|date_format} @@ -36,9 +36,9 @@ {/if} delete | delete | remove
    diff --git a/resources/views/themes/admin/site-stats.tpl b/resources/views/themes/admin/site-stats.tpl index 146e85f02..ccdbf0083 100644 --- a/resources/views/themes/admin/site-stats.tpl +++ b/resources/views/themes/admin/site-stats.tpl @@ -12,7 +12,7 @@ {foreach from=$topgrabs item=result}
    {$result.username} {$result.grabs}
    {$result.searchname|escape:"htmlall"|replace:".":" "} - {if isset($isadmin)} + href="{$smarty.const.WWW_TOP}/details/{$result.guid}">{$result.searchname|escape:"htmlall"|replace:".":" "} + {if isset($isadmin)} [Edit]{/if} {$result.grabs} {$result.adddate|timeago}
    {$result.searchname|escape:"htmlall"|replace:".":" "} + href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments">{$result.searchname|escape:"htmlall"|replace:".":" "} {$result.comments} {$result.adddate|timeago}
    @@ -107,7 +107,7 @@ diff --git a/resources/views/themes/admin/user-list.tpl b/resources/views/themes/admin/user-list.tpl index 388c8753a..a9891cc9e 100644 --- a/resources/views/themes/admin/user-list.tpl +++ b/resources/views/themes/admin/user-list.tpl @@ -77,9 +77,9 @@ {foreach $userlist as $user} - - @@ -89,13 +89,13 @@
    {if !empty($user.id) && $user->role->id != 2} + href="{$smarty.const.WWW_TOP}/admin/user-delete?id={$user.id}"> Delete user{/if}
    {$user.username} + {$user.username} {$user.email} + {$user.email} {$user.host} {$user.created_at|date_format}{$user.grabs} {$user.invites} {$user->role->name} {if !empty($user.rolechangedate)}{$user.rolechangedate}{/if} {if $user.user_roles_id !="2"} + href="{$smarty.const.WWW_TOP}/admin/user-delete?id={$user.id}"> delete{/if}