Commit 0303d22c authored by echel0n's avatar echel0n
Browse files

Fixed issue with switching home page layout

parent 838ac4ff
......@@ -109,6 +109,7 @@ class SetHomeLayoutHandler(BaseHandler, ABC):
layout = 'POSTER'
sickrage.app.config.gui.home_layout = HomeLayout[layout]
sickrage.app.config.save()
# Don't redirect to default page so user can see new layout
return self.redirect("/home/")
......
......@@ -72,11 +72,11 @@
% endif
</button>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.POSTER.name}}">Poster</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.SMALL.name}}">Small Poster</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.BANNER.name}}">Banner</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.DETAILED.name}}">Detailed</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.SIMPLE.name}}">Simple</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.POSTER.name}">Poster</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.SMALL.name}">Small Poster</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.BANNER.name}">Banner</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.DETAILED.name}">Detailed</a>
<a class="dropdown-item" href="${srWebRoot}/setHomeLayout/?layout=${HomeLayout.SIMPLE.name}">Simple</a>
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment