Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix home page slowdown - layout imported twice (pymedusa#6754)
Browse files Browse the repository at this point in the history
sharkykh authored and Thilas committed Jun 5, 2019
1 parent e48423d commit 9f7d521
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
- Fixed exception in API v2 when an incorrect API key was provided, or none was provided ([#6703](https://github.com/pymedusa/Medusa/pull/6703))
- Removed legacy log-censoring code for Newznab providers ([#6705](https://github.com/pymedusa/Medusa/pull/6705))
- Fixed DelugeD remove torrents when ratio is reached (Python 2.7) ([#6702](https://github.com/pymedusa/Medusa/pull/6702))
- Fixed home page slow down issue ([#6754](https://github.com/pymedusa/Medusa/pull/6754))

## 0.3.1 (2019-03-20)

6 changes: 6 additions & 0 deletions themes-default/slim/views/home.mako
Original file line number Diff line number Diff line change
@@ -90,11 +90,17 @@
</ul>
<!-- Tab panes -->
<div id="showTabPanes">
## Checking with Mako as well, so we don't import the home page layout multiple times.
% if app.ANIME_SPLIT_HOME and app.ANIME_SPLIT_HOME_IN_TABS:
<%include file="/partials/home/${app.HOME_LAYOUT}.mako"/>
% endif
</div><!-- #showTabPanes -->
</div> <!-- #showTabs -->
<template v-else>
## Checking with Mako as well, so we don't import the home page layout multiple times.
% if not (app.ANIME_SPLIT_HOME and app.ANIME_SPLIT_HOME_IN_TABS):
<%include file="/partials/home/${app.HOME_LAYOUT}.mako"/>
% endif
</template>
</div>
</div>
6 changes: 6 additions & 0 deletions themes/dark/templates/home.mako

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions themes/light/templates/home.mako

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f7d521

Please sign in to comment.