main.mako 26.5 KB
Newer Older
echel0n's avatar
echel0n committed
1
2
3
4
5
6
7
8
<%!
    import datetime
    import re

    from time import time

    import sickrage
    from sickrage.core.updaters import tz_updater
9
    from sickrage.core.helpers import pretty_filesize, memory_usage
echel0n's avatar
echel0n committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%>
<!DOCTYPE html>
<html>
<head>
    <title>${_('SiCKRAGE')} - ${title}</title>

    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <meta charset="utf-8">
    <meta name="robots" content="noindex, nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=0.5, user-scalable=no">

26
    % if sickrage.app.config.theme_name == "dark":
echel0n's avatar
echel0n committed
27
        <meta name="theme-color" content="#15528F">
28
    % elif sickrage.app.config.theme_name == "light":
echel0n's avatar
echel0n committed
29
30
31
32
33
34
35
36
37
38
        <meta name="theme-color" content="#333333">
    % endif

    <meta name="msapplication-TileColor" content="#ffffff">
    <meta name="msapplication-TileImage" content="${srWebRoot}/images/ico/ms-icon-144x144.png">
    <meta name="msapplication-config" content="${srWebRoot}/images/ico/browserconfig.xml">

    <meta data-var="srPID" data-content="${srPID}">
    <meta data-var="srDefaultPage" data-content="${srDefaultPage}">
    <meta data-var="srWebRoot" data-content="${srWebRoot}">
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
    <meta data-var="themeSpinner" data-content="${('', '-dark')[sickrage.app.config.theme_name == 'dark']}">
    <meta data-var="anonURL" data-content="${sickrage.app.config.anon_redirect}">
    <meta data-var="sickrage.ANIME_SPLIT_HOME" data-content="${sickrage.app.config.anime_split_home}">
    <meta data-var="sickrage.COMING_EPS_LAYOUT" data-content="${sickrage.app.config.coming_eps_layout}">
    <meta data-var="sickrage.COMING_EPS_SORT" data-content="${sickrage.app.config.coming_eps_sort}">
    <meta data-var="sickrage.DATE_PRESET" data-content="${sickrage.app.config.date_preset}">
    <meta data-var="sickrage.FILTER_ROW" data-content="${sickrage.app.config.filter_row}">
    <meta data-var="sickrage.FUZZY_DATING" data-content="${sickrage.app.config.fuzzy_dating}">
    <meta data-var="sickrage.HISTORY_LAYOUT" data-content="${sickrage.app.config.history_layout}">
    <meta data-var="sickrage.HOME_LAYOUT" data-content="${sickrage.app.config.home_layout}">
    <meta data-var="sickrage.POSTER_SORTBY" data-content="${sickrage.app.config.poster_sortby}">
    <meta data-var="sickrage.POSTER_SORTDIR" data-content="${sickrage.app.config.poster_sortdir}">
    <meta data-var="sickrage.ROOT_DIRS" data-content="${sickrage.app.config.root_dirs}">
    <meta data-var="sickrage.SORT_ARTICLE" data-content="${sickrage.app.config.sort_article}">
    <meta data-var="sickrage.TIME_PRESET" data-content="${sickrage.app.config.time_preset}">
    <meta data-var="sickrage.TRIM_ZERO" data-content="${sickrage.app.config.trim_zero}">
    <meta data-var="sickrage.FANART_BACKGROUND" data-content="${sickrage.app.config.fanart_background}">
echel0n's avatar
echel0n committed
56
    <meta data-var="sickrage.FANART_BACKGROUND_OPACITY"
57
          data-content="${sickrage.app.config.fanart_background_opacity}">
echel0n's avatar
echel0n committed
58
59
    <%block name="metas" />

echel0n's avatar
echel0n committed
60
    <link rel="icon" type="image/png" sizes="32x32" href="${srWebRoot}/images/favicon.png">
echel0n's avatar
echel0n committed
61

62
    % if sickrage.app.config.gui_lang:
echel0n's avatar
echel0n committed
63
64
65
66
67
68
        <link rel="gettext" type="application/json" href="${srWebRoot}/messages.json">
    % endif

    <link rel="stylesheet" type="text/css" href="${srWebRoot}/css/bower.min.css"/>
    <link rel="stylesheet" type="text/css" href="${srWebRoot}/css/core.min.css"/>
    <link rel="stylesheet" type="text/css"
69
          href="${srWebRoot}/css/themes/${sickrage.app.config.theme_name}.min.css"/>
echel0n's avatar
echel0n committed
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
    <%block name="css" />
</head>
<body data-controller="${controller}" data-action="${action}">
    % if current_user:
        <nav class="navbar navbar-default navbar-fixed-top">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                            data-target="#navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">${_('Toggle navigation')}</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="${srWebRoot}/home/">
                        <img alt="SiCKRAGE"
                             src="${srWebRoot}/images/logo.png"
echel0n's avatar
echel0n committed
87
                             style="width: 400px;height: 50px;"
echel0n's avatar
echel0n committed
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
                             class="img-responsive pull-left"/>
                    </a>
                </div>
                <div class="collapse navbar-collapse" id="navbar-collapse-1">
                    <ul class="nav navbar-nav navbar-right">
                        <li id="NAVhome" class="navbar-split dropdown${('', ' active')[topmenu == 'home']}">
                            <a href="${srWebRoot}/home/" class="dropdown-toggle" aria-haspopup="true"
                               data-toggle="dropdown" data-hover="dropdown"><span>${_('Shows')}</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="${srWebRoot}/home/">
                                        <i class="menu-icon-home"></i>&nbsp;${_('Show List')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/home/addShows/">
                                        <i class="menu-icon-addshow"></i>&nbsp;${_('Add Shows')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/home/postprocess/">
                                        <i class="menu-icon-postprocess"></i>&nbsp;${_('Manual Post-Processing')}
                                    </a>
                                </li>
113
                                % if sickrage.app.config.shows_recent:
echel0n's avatar
echel0n committed
114
                                    <li class="divider"></li>
115
                                % for recentShow in sickrage.app.config.shows_recent:
echel0n's avatar
echel0n committed
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
                                    <li>
                                        <a href="${srWebRoot}/home/displayShow/?show=${recentShow['indexerid']}">
                                            <i class="menu-icon-addshow"></i>&nbsp;${recentShow['name']|trim,h}
                                        </a>
                                    </li>
                                % endfor
                                % endif
                            </ul>
                            <div style="clear:both;"></div>
                        </li>

                        <li id="NAVmanage" class="navbar-split dropdown${('', ' active')[topmenu == 'manage']}">
                            <a href="${srWebRoot}/manage/episodeStatuses/" class="dropdown-toggle"
                               aria-haspopup="true"
                               data-toggle="dropdown" data-hover="dropdown">
                                <span>Manage</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="${srWebRoot}/manage/">
                                        <i class="menu-icon-manage"></i>&nbsp;${_('Mass Update')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/manage/backlogOverview/">
                                        <i class="menu-icon-backlog-view"></i>&nbsp;${_('Backlog Overview')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/manage/manageQueues/">
                                        <i class="menu-icon-manage-searches"></i>&nbsp;${_('Manage Queues')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/manage/episodeStatuses/">
                                        <i class="menu-icon-backlog"></i>&nbsp;${_('Episode Status Management')}
                                    </a>
                                </li>
154
                                % if sickrage.app.config.use_trakt and sickrage.app.config.trakt_oauth_token != "":
echel0n's avatar
echel0n committed
155
156
157
158
159
160
                                    <li>
                                        <a href="${srWebRoot}/home/syncTrakt/">
                                            <i class="menu-icon-backlog-view"></i>&nbsp;${_('Sync Trakt')}
                                        </a>
                                    </li>
                                % endif
161
                                % if sickrage.app.config.use_plex and sickrage.app.config.plex_server_host != "":
echel0n's avatar
echel0n committed
162
163
164
165
166
167
                                    <li>
                                        <a href="${srWebRoot}/home/updatePLEX/">
                                            <i class="menu-icon-backlog-view"></i>&nbsp;${_('Update PLEX')}
                                        </a>
                                    </li>
                                % endif
168
                                % if sickrage.app.config.use_kodi and sickrage.app.config.kodi_host != "":
echel0n's avatar
echel0n committed
169
170
171
172
173
174
                                    <li>
                                        <a href="${srWebRoot}/home/updateKODI/">
                                            <i class="menu-icon-kodi"></i>&nbsp;${_('Update KODI')}
                                        </a>
                                    </li>
                                % endif
175
                                % if sickrage.app.config.use_emby and sickrage.app.config.emby_host != "" and sickrage.app.config.emby_apikey != "":
echel0n's avatar
echel0n committed
176
177
178
179
180
181
182
183
184
185
186
187
188
                                    <li>
                                        <a href="${srWebRoot}/home/updateEMBY/">
                                            <i class="menu-icon-backlog-view"></i>&nbsp;${_('Update Emby')}
                                        </a>
                                    </li>
                                % endif
                                % if torrent_webui_url:
                                    <li>
                                        <a href="${torrent_webui_url}" target="_blank">
                                            <i class="menu-icon-bittorrent"></i>&nbsp;${_('Manage Torrents')}
                                        </a>
                                    </li>
                                % endif
189
190
191
192
193
                                <li>
                                    <a href="${srWebRoot}/manage/failedDownloads/">
                                        <i class="menu-icon-failed-download"></i>&nbsp;${_('Failed Downloads')}
                                    </a>
                                </li>
194
                                % if sickrage.app.config.use_subtitles:
echel0n's avatar
echel0n committed
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
                                    <li>
                                        <a href="${srWebRoot}/manage/subtitleMissed/">
                                            <i class="menu-icon-backlog"></i>&nbsp;${_('Missed Subtitle Management')}
                                        </a>
                                    </li>
                                % endif
                            </ul>
                            <div style="clear:both;"></div>
                        </li>

                        <li id="NAVschedule"${('', ' class="active"')[topmenu == 'schedule']}>
                            <a href="${srWebRoot}/schedule/">${_('Schedule')}</a>
                        </li>

                        <li id="NAVhistory"${('', ' class="active"')[topmenu == 'history']}>
                            <a href="${srWebRoot}/history/">${_('History')}</a>
                        </li>

                        <li id="NAVconfig" class="navbar-split dropdown${('', ' active')[topmenu == 'config']}">
                            <a href="${srWebRoot}/config/" class="dropdown-toggle" aria-haspopup="true"
                               data-toggle="dropdown"
                               data-hover="dropdown"><span class="visible-xs">${_('Config')}</span><img
                                    src="${srWebRoot}/images/menu/system18.png" class="navbaricon hidden-xs"/>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="${srWebRoot}/config/">
                                        <i class="fa fa-info"></i>&nbsp;${_('Help and Info')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/general/">
                                        <i class="fa fa-cogs"></i>&nbsp;${_('General')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/backuprestore/">
                                        <i class="fa fa-upload"></i>&nbsp;${_('Backup and Restore')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/search/">
                                        <i class="fa fa-binoculars"></i>&nbsp;${_('Search Clients')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/providers/">
                                        <i class="fa fa-share-alt"></i>&nbsp;${_('Search Providers')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/subtitles/">
                                        <i class="fa fa-cc"></i>&nbsp;${_('Subtitles Settings')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/qualitySettings/">
                                        <i class="fa fa-wrench"></i>&nbsp;${_('Quality Settings')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/postProcessing/">
                                        <i class="fa fa-refresh"></i>&nbsp;${_('Post Processing')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/notifications/">
                                        <i class="fa fa-bell"></i>&nbsp;${_('Notifications')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/config/anime/">
                                        <i class="fa fa-eye"></i>&nbsp;${_('Anime')}
                                    </a>
                                </li>
                            </ul>
                            <div style="clear:both;"></div>
                        </li>

                        <%
                            numCombined = numErrors + numWarnings
                            if numCombined:
                                if numErrors:
                                    toolsBadgeClass = ' btn-danger'
                                elif numWarnings:
                                    toolsBadgeClass = ' btn-warning'
                                else:
                                    toolsBadgeClass = ''

                                toolsBadge = ' <span class="badge'+toolsBadgeClass+'">'+str(numCombined)+'</span>'
                            else:
                                toolsBadge = ''
                        %>

                        <li id="NAVsystem" class="navbar-split dropdown${('', ' active')[topmenu == 'system']}">
                            <a href="${srWebRoot}/home/status/" class="dropdown-toggle" aria-haspopup="true"
                               data-toggle="dropdown"
                               data-hover="dropdown"><span class="visible-xs">${_('Tools')}</span><img
                                    src="${srWebRoot}/images/menu/system18-2.png"
                                    class="navbaricon hidden-xs"/>${toolsBadge}
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="${srWebRoot}/IRC/">
                                        <i class="fa fa-hashtag"></i>&nbsp;${_('IRC')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/changes/">
                                        <i class="fa fa-globe"></i>&nbsp;${_('Changelog')}
                                    </a>
                                </li>
                                <li>
echel0n's avatar
echel0n committed
308
                                    <a href="https://www.sickrage.ca/forums/donate" rel="noreferrer"
309
                                       onclick="window.open('${sickrage.app.config.anon_redirect}' + this.href); return false;">
echel0n's avatar
echel0n committed
310
311
312
313
314
315
316
317
318
319
320
321
322
323
                                        <i class="fa fa-money"></i>&nbsp;${_('Donate')}
                                    </a>
                                </li>
                                <li class="divider"></li>
                                %if numErrors:
                                    <li>
                                        <a href="${srWebRoot}/logs/">
                                            <i class="fa fa-exclamation-circle"></i>&nbsp;${_('View Errors')}
                                            <span class="badge btn-danger">${numErrors}</span>
                                        </a>
                                    </li>
                                %endif
                                %if numWarnings:
                                    <li>
324
                                        <a href="${srWebRoot}/logs/?level=${sickrage.app.log.WARNING}">
echel0n's avatar
echel0n committed
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
                                            <i class="fa fa-exclamation-triangle"></i>&nbsp;${_('View Warnings')}
                                            <span class="badge btn-warning">${numWarnings}</span>
                                        </a>
                                    </li>
                                %endif
                                <li>
                                    <a href="${srWebRoot}/logs/viewlog/">
                                        <i class="fa fa-file-text-o"></i>&nbsp;${_('View Log')}
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="${srWebRoot}/home/updateCheck?pid=${srPID}">
                                        <i class="fa fa-check-square"></i>&nbsp;${_('Check For Updates')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/home/restart/?pid=${srPID}" class="confirm restart">
                                        <i class="fa fa-repeat"></i>&nbsp;${_('Restart')}
                                    </a>
                                </li>
                                <li>
                                    <a href="${srWebRoot}/home/shutdown/?pid=${srPID}" class="confirm shutdown">
                                        <i class="fa fa-power-off"></i>&nbsp;${_('Shutdown')}
                                    </a>
                                </li>
                                % if current_user != True:
                                    <li>
                                        <a href="${srWebRoot}/logout" class="confirm logout">
                                            <i class="fa fa-sign-out"></i>&nbsp;${_('Logout')}
                                        </a>
                                    </li>
                                % endif
                                <li class="divider"></li>
                                <li>
                                    <a href="${srWebRoot}/home/status/">
                                        <i class="fa fa-server"></i>&nbsp;${_('Server Status')}
                                    </a>
                                </li>
                            </ul>
                            <div style="clear:both;"></div>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    % endif

<div class="container-fluid">
    <div id="sub-menu-container" class="row">
        % if submenu:
            <div id="sub-menu" class="hidden-print">
                <% first = True %>
378
                % for menuItem in submenu:
echel0n's avatar
echel0n committed
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
                    % if menuItem.get('requires', 1):
                        % if isinstance(menuItem['path'], dict):
                        ${("</span><span>", "")[bool(first)]}<b>${menuItem['title']}</b>
                        <%
                            first = False
                            inner_first = True
                        %>
                        % for cur_link in menuItem['path']:
                        ${("&middot;", "")[bool(inner_first)]}<a href="${srWebRoot}${menuItem['path'][cur_link]}"
                                                                 class="inner ${menuItem.get('class', '')}">${cur_link}</a>
                        <% inner_first = False %>
                        % endfor
                        % else:
                            <a href="${srWebRoot}${menuItem['path']}"
                               class="btn ${('', ' confirm ')['confirm' in menuItem]} ${menuItem.get('class', '')}">
                                <i class='${menuItem.get('icon', '')}'></i> ${menuItem['title']}
                            </a>
                        <% first = False %>
                        % endif
                    % endif
                % endfor
            </div>
        % endif
    </div>

echel0n's avatar
echel0n committed
404
    % if current_user and sickrage.app.developer:
405
406
407
408
409
410
411
412
413
        <div class="row">
            <div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
                <div class="alert alert-danger upgrade-notification text-center">
                    <span>!!! SiCKRAGE is in <b>developer</b> mode !!!</span>
                </div>
            </div>
        </div>
    % endif

414
    % if current_user and sickrage.app.newest_version_string:
echel0n's avatar
echel0n committed
415
416
417
        <div class="row">
            <div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
                <div class="alert alert-success upgrade-notification text-center">
418
                    <span>${sickrage.app.newest_version_string}</span>
echel0n's avatar
echel0n committed
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
                </div>
            </div>
        </div>
    % endif

    <div class="row">
        <div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
                <%block name="content" />
        </div>
    </div>

    % if current_user:
        <div class="row">
            <div class="footer text-center clearfix col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
                <div>
echel0n's avatar
echel0n committed
434
                    % if overall_stats:
435
436
437
438
439
440
441
442
443
444
                    <%
                        total_size = pretty_filesize(overall_stats['total_size'])
                        ep_downloaded = overall_stats['episodes']['downloaded']
                        ep_snatched = overall_stats['episodes']['snatched']
                        ep_total = overall_stats['episodes']['total']
                        ep_percentage = '' if ep_total == 0 else '(<span class="footer-highlight">%s%%</span>)' % re.sub(r'(\d+)(\.\d)\d+', r'\1\2', str((float(ep_downloaded)/float(ep_total))*100))
                    %>
                        <span class="footer-highlight">${overall_stats['shows']['total']}</span> ${_('Shows')} (<span
                            class="footer-highlight">${overall_stats['shows']['active']}</span> ${_('Active')})
                        | <span class="footer-highlight">${ep_downloaded}</span>
echel0n's avatar
echel0n committed
445
446
447

                    % if ep_snatched:
                        <span class="footer-highlight">
448
449
                                    <a href="${srWebRoot}/manage/episodeStatuses?whichStatus=2">+${ep_snatched}</a>
                                </span>
echel0n's avatar
echel0n committed
450
451
                    ${_('Snatched')}
                    % endif
452
453
454
455
                        &nbsp;/&nbsp;<span
                            class="footer-highlight">${ep_total}</span> ${_('Episodes Downloaded')} ${ep_percentage}
                        &nbsp;/&nbsp;<span class="footer-highlight">${total_size}</span> ${_('Overall Downloaded')}
                    % endif
echel0n's avatar
echel0n committed
456
457
458
                </div>

                <div>
459
                    ${_('Daily Search:')} <span
echel0n's avatar
echel0n committed
460
461
                        class="footer-highlight">${str(sickrage.app.scheduler.get_job('DAILYSEARCHER').next_run_time).split('.')[0]}</span>
                    |
462
                    ${_('Backlog Search:')} <span
echel0n's avatar
echel0n committed
463
464
                        class="footer-highlight">${str(sickrage.app.scheduler.get_job('BACKLOG').next_run_time).split('.')[0]}</span>
                    |
465
466
467
468
                    ${_('Memory used:')}
                    <span class="footer-highlight">
                        ${memory_usage()}
                    </span> |
echel0n's avatar
echel0n committed
469
470
471
472
473
474
475
476
477
                    ${_('Load time:')}
                    <span class="footer-highlight">
                        ${"{:10.4f}".format(time() - srStartTime)}s
                    </span> / Mako:
                    <span class="footer-highlight">
                        ${"{:10.4f}".format(time() - makoStartTime)}s
                    </span> |
                    ${_('Now:')}
                    <span class="footer-highlight">
478
                        ${str(datetime.datetime.now(sickrage.app.tz)).split('.')[0]}
echel0n's avatar
echel0n committed
479
480
481
482
483
484
485
486
487
488
489
490
                    </span>
                </div>
            </div>
        </div>
    % endif

    <script src="${srWebRoot}/js/bower.min.js"></script>
    <script src="${srWebRoot}/js/core.min.js"></script>
    <%block name="scripts" />
</div>
</body>
</html>