Skip to content

Commit

Permalink
Implemented issue #149 and some other changes. See changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dagalufh committed Apr 23, 2016
1 parent dddb208 commit 5e8aaee
Show file tree
Hide file tree
Showing 7 changed files with 294 additions and 66 deletions.
3 changes: 3 additions & 0 deletions http/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ FRONTEND:
#### Subtitlemgmt: Now uses the new Language Module
#93 WT: Now has support for custom themes! First out is a draft of trumpy81 that needs to be finetuned by trumpy81
#160 WT: Implemented Factory Reset functionality. Available through the Options menu.
#149 Subtitlemgmt: Implemented letters instead of straight up numbers for paging.
#### WT: Removed LogFiles from top menu, redirecting users to LogViewer instead.
#### WT: Themes are now applied on loginscreen aswell.

####

Expand Down
13 changes: 12 additions & 1 deletion http/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
th {background-color: #FE9B00; color: #242424;}

.subtitle {padding: 0px;}
/*.subtitletable {display: none;}*/

.btn-default:hover {background-color: #FE9B00; color: #242424;}
.btn-default:focus {background-color: #FE9B00; color: #242424;}
Expand Down Expand Up @@ -58,11 +59,21 @@ body {background-color: #242424; padding-top:70px; padding-bottom:70px;}
.navbar-thin {min-height: 40px; padding-top: 5px; border-top: 1px solid #242424;}
.changeDisplay {display: table-cell;}


.page-selector-dropdown {display: inline;}
.page-selector-list {display: none;}

@media screen and (max-width:678px) {
.changeDisplay {display: block;}
.div-medium {width: auto;}

}

/*
@media screen and (max-width:1346px) {
.page-selector-dropdown {display: inline;}
.page-selector-list {display: none;}
}
*/
select {
background-color: #FFFFFF;
color: #000000;
Expand Down
5 changes: 0 additions & 5 deletions http/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Options<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" id="OptionsMenu">
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Logfiles<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" id="LogfilesMenu">
</ul>
</li>
<li><a href="/logout">Logout</a></li>
</ul>
Expand Down
6 changes: 4 additions & 2 deletions http/jscript/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var webtools = {
['subtitlemgmt', 'Subtitle Management'],
['logviewer', 'LogViewer/Downloader Tool'],
['install', 'Unsupported AppStore']
//['findunmatched','FindUnmatched']
],
stylesheets: [],
active_stylesheet: '',
Expand Down Expand Up @@ -150,7 +151,8 @@ webtools.list_modules.inline([
});
},
function(callback, activatemodulename) {
webtools.listlogfiles(callback, activatemodulename);
callback('LogfileNamesFetch:Ignored', activatemodulename);
//webtools.listlogfiles(callback, activatemodulename);
},
function(callback, activatemodulename) {
$.ajax({
Expand Down Expand Up @@ -292,7 +294,7 @@ webtools.save_options = function() {
};

webtools.listlogfiles = function(callback, activatemodulename) {

// Currently unused
webtools.loading();
//Name:LogfileNamesFetch
$("#LogfilesMenu").html('');
Expand Down
18 changes: 18 additions & 0 deletions http/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,24 @@
$('#LoginMessage').hide();
}
});

$.ajax({
///webtools2?module=settings&function=getSettings
url: '/webtools2?module=settings&function=getSetting&name=wt_csstheme',
cache: false,
dataType: 'JSON',
success: function(data) {
webtools.active_stylesheet = data;
if (data !== 'default.css') {
webtools.log('Found custom CSSTheme file setting (custom_themes/' + data + '). Loading it.','Core');
$('head').append('<link id="custom_theme_stylesheet" rel="stylesheet" href="custom_themes/' + data + '" type="text/css" />');
}
},
error: function(data) {
webtools.active_stylesheet = 'default.css';
webtools.log('No custom CSSTheme setting found.','Core');
}
});
});

function login() {
Expand Down
Loading

0 comments on commit 5e8aaee

Please sign in to comment.