index.mako 8.72 KB
Newer Older
1
<%inherit file="../layouts/main.mako"/>
2
<%!
3
    import sys, os, tornado
echel0n's avatar
echel0n committed
4

5
    import sickrage
6
    from sickrage.core.helpers import anon_url
echel0n's avatar
echel0n committed
7

8
9
10
11
12
13
14
15
    sr_user = None
    try:
        import pwd
        sr_user = pwd.getpwuid(os.getuid()).pw_name
    except ImportError:
        import getpass
        sr_user = getpass.getuser()
%>
echel0n's avatar
echel0n committed
16
17
18

<%block name="content">
    <div class="row">
19
20
21
22
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="row">
echel0n's avatar
echel0n committed
23
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
24
                            <i class="icons-sickrage icons-sickrage-version"></i> ${_('SR Version:')}
echel0n's avatar
echel0n committed
25
26
27
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            ${sickrage.srCore.VERSIONUPDATER.updater.version}
28
29
                        </div>
                    </div>
echel0n's avatar
echel0n committed
30
                    <br/>
31
                    <div class="row">
echel0n's avatar
echel0n committed
32
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
33
                            <i class="icons-sickrage icons-sickrage-type"></i> ${_('SR Type:')}
echel0n's avatar
echel0n committed
34
35
36
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            ${sickrage.srCore.VERSIONUPDATER.updater.type}
37
38
                        </div>
                    </div>
echel0n's avatar
echel0n committed
39
                    <br/>
40
41
                    % if sr_user:
                        <div class="row">
echel0n's avatar
echel0n committed
42
                            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
43
                                <i class="icons-sickrage icons-sickrage-user"></i> ${_('SR User:')}
echel0n's avatar
echel0n committed
44
45
46
                            </div>
                            <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                                ${sr_user}
47
48
                            </div>
                        </div>
echel0n's avatar
echel0n committed
49
                        <br/>
50
51
52
                    % endif
                    <div class="row">
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12"><i
echel0n's avatar
echel0n committed
53
                                class="icons-sickrage icons-sickrage-locale"></i> ${_('SR Locale:')}
54
                        </div>
55
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">${sickrage.srCore.SYS_ENCODING}</div>
56
                    </div>
echel0n's avatar
echel0n committed
57
                    <br/>
58
                    <div class="row">
echel0n's avatar
echel0n committed
59
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
60
                            <i class="icons-sickrage icons-sickrage-cfg"></i> ${_('SR Config:')}
echel0n's avatar
echel0n committed
61
62
63
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            ${sickrage.CONFIG_FILE}
64
65
                        </div>
                    </div>
echel0n's avatar
echel0n committed
66
                    <br/>
67
                    <div class="row">
echel0n's avatar
echel0n committed
68
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
69
                            <i class="icons-sickrage icons-sickrage-cache"></i> ${_('SR Cache Dir:')}
echel0n's avatar
echel0n committed
70
71
72
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            ${sickrage.CACHE_DIR}
73
74
                        </div>
                    </div>
echel0n's avatar
echel0n committed
75
                    <br/>
76
                    <div class="row">
echel0n's avatar
echel0n committed
77
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
78
                            <i class="icons-sickrage icons-sickrage-log"></i> ${_('SR Log File:')}
echel0n's avatar
echel0n committed
79
80
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
81
                            ${sickrage.srCore.srLogger.logFile}
82
83
                        </div>
                    </div>
echel0n's avatar
echel0n committed
84
                    <br/>
85
                    <div class="row">
echel0n's avatar
echel0n committed
86
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
87
                            <i class="icons-sickrage icons-sickrage-console"></i> ${_('SR Arguments:')}
echel0n's avatar
echel0n committed
88
89
90
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            ${sys.argv[1:]}
91
92
                        </div>
                    </div>
echel0n's avatar
echel0n committed
93
                    <br/>
94
95
                    % if sickrage.srCore.srConfig.WEB_ROOT:
                        <div class="row">
echel0n's avatar
echel0n committed
96
                            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
97
                                ${_('SR Web Root:')}
echel0n's avatar
echel0n committed
98
99
100
101
                            </div>
                            <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                                ${sickrage.srCore.srConfig.WEB_ROOT}
                            </div>
102
                        </div>
echel0n's avatar
echel0n committed
103
                        <br/>
104
105
                    % endif
                    <div class="row">
echel0n's avatar
echel0n committed
106
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
107
                            <i class="icons-sickrage icons-sickrage-tornado"></i> ${_('Tornado Version:')}
echel0n's avatar
echel0n committed
108
109
110
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            ${tornado.version}
111
112
                        </div>
                    </div>
echel0n's avatar
echel0n committed
113
                    <br/>
114
                    <div class="row">
echel0n's avatar
echel0n committed
115
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
116
                            <i class="icons-sickrage icons-sickrage-python"></i> ${_('Python Version:')}
echel0n's avatar
echel0n committed
117
118
119
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            ${sys.version}
120
121
122
123
                        </div>
                    </div>
                    <hr/>
                    <div class="row">
echel0n's avatar
echel0n committed
124
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
125
                            <i class="icons-sickrage icons-sickrage-logo"></i> ${_('Homepage')}
126
127
128
129
130
131
132
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            <a href="${anon_url('https://www.sickrage.ca/')}"
                               rel="noreferrer"
                               onclick="window.open(this.href, '_blank'); return false;">https://www.sickrage.ca/</a>
                        </div>
                    </div>
echel0n's avatar
echel0n committed
133
                    <br/>
134
                    <div class="row">
echel0n's avatar
echel0n committed
135
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
136
                            <i class="icons-sickrage icons-sickrage-wiki"></i> ${_('WiKi')}
137
138
139
140
141
142
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            <a href="${anon_url('https://git.sickrage.ca/SiCKRAGE/sickrage/wikis/home')}"
                               rel="noreferrer" onclick="window.open(this.href, '_blank'); return false;">https://git.sickrage.ca/SiCKRAGE/sickrage/wikis/home</a>
                        </div>
                    </div>
echel0n's avatar
echel0n committed
143
                    <br/>
144
                    <div class="row">
echel0n's avatar
echel0n committed
145
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
146
                            <i class="icons-sickrage icons-sickrage-forums"></i> ${_('Forums')}
147
148
149
150
151
152
153
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            <a href="${anon_url('https://sickrage.ca/forums/')}"
                               rel="noreferrer"
                               onclick="window.open(this.href, '_blank'); return false;">https://www.sickrage.ca/forums/</a>
                        </div>
                    </div>
echel0n's avatar
echel0n committed
154
                    <br/>
155
                    <div class="row">
echel0n's avatar
echel0n committed
156
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
157
                            <i class="icons-sickrage icons-sickrage-git"></i> ${_('Source')}
158
159
160
161
162
163
164
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            <a href="${anon_url('https://git.sickrage.ca/SiCKRAGE/sickrage/')}"
                               rel="noreferrer"
                               onclick="window.open(this.href, '_blank'); return false;">https://git.sickrage.ca/SiCKRAGE/sickrage/</a>
                        </div>
                    </div>
echel0n's avatar
echel0n committed
165
                    <br/>
166
                    <div class="row">
echel0n's avatar
echel0n committed
167
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
echel0n's avatar
echel0n committed
168
                            <i class="icons-sickrage icons-sickrage-irc"></i> ${_('IRChat')}
169
170
171
                        </div>
                        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
                            <a href="irc://irc.freenode.net/#sickrage" rel="noreferrer"><i>#sickrage</i>
echel0n's avatar
echel0n committed
172
                                ${_('on')} <i>irc.freenode.net</i></a>
173
174
175
176
                        </div>
                    </div>
                </div>
            </div>
echel0n's avatar
echel0n committed
177
178
        </div>
    </div>
179
</%block>