Skip to content

Commit

Permalink
allow frame name to be set
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoker committed Nov 30, 2021
1 parent eabdb5c commit f40a0bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ module.exports = {
* Allowed picture image file extensions.
*/
extensions: ['jpg', 'jpeg', 'png'],

/**
* Name displayed in the title of the "manage" page.
*/
name: 'Picture Frame',
};
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ router.get(['/', '/index.html', '/manage', '/manage.html'], function(req, res, n
timezone: now.getTimezoneOffset(),
time: now.getTime(),
uploads: config.uploads,
name: config.name || 'Picture Frame',
};
if (config.uploads) {
let es = "";
Expand Down
2 changes: 1 addition & 1 deletion public/manage/header.incl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<img src="/images/header-icon.png" width="50" height="50" />
</a>
<a class="navbar-brand hidden-xs" href="https://github.com/JohnCoker/pictureframe">
<h1>Picture Frame</h1>
<h1>{{name}}</h1>
</a>
</div>
<div id="navbar" class="collapse navbar-collapse navbar-right">
Expand Down

0 comments on commit f40a0bf

Please sign in to comment.