mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added in-app help
This commit is contained in:
parent
b2cbf5ecb4
commit
51ce474ec4
4 changed files with 25 additions and 11 deletions
|
@ -1095,7 +1095,18 @@ var Dashboard = {
|
|||
parent = $('.ui-content', page)[0];
|
||||
}
|
||||
|
||||
$(parent).prepend("<h1 class='pageTitle'>" + (document.title || " ") + "</h1>");
|
||||
var helpUrl = page.attr('data-helpurl');
|
||||
|
||||
var html = '<div>';
|
||||
html += '<h1 class="pageTitle" style="display:inline-block;">' + (document.title || ' ') + '</h1>';
|
||||
|
||||
if (helpUrl) {
|
||||
html += '<a href="' + helpUrl + '" target="_blank" class="accentButton accentButton-g" style="margin-top:-10px;"><i class="fa fa-info-circle"></i>' + Globalize.translate('ButtonHelp') + '</a>';
|
||||
}
|
||||
|
||||
html += '</div>';
|
||||
|
||||
$(parent).prepend(html);
|
||||
},
|
||||
|
||||
setPageTitle: function (title) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue