1 | 2 | simandl | {% extends "index.twig" %} |
2 | | | |
3 | | | {% block scripts %} |
4 | | | {{ parent() }} |
5 | | | {% endblock %} |
6 | | | |
7 | | | {% block content %} |
8 | | | {{ parent() }} |
9 | | | <div id="head">RozhranĂ pro sprĂĄvu Freenet routeru</div> |
10 | | | <table width="100%"> |
11 | | | <tr> |
12 | | | <td align="left" valign="top"> |
13 | | | |
14 | | | <div id="text2"> |
15 | | | <div id="login"> |
16 | | | <span id="head2">pĹihlĂĄĹĄenĂ:</span><br> |
17 | | | {% if login %} |
18 | | | <table width="98%"> |
19 | | | <tr> |
20 | | | <td align="left" colspan="2" width="50%"> |
21 | | | jste pĹihlĂĄĹĄen jako uĹživatel: {{loggedUser}} |
22 | | | </td> |
23 | | | <td width="5%"></td> |
24 | | | <td colspan="2" align="left"> |
25 | | | zĂĄpis na disk: |
26 | | | {% if not system.writeEnabled %} |
27 | | | <span style="color:red">nepovolen</span> |
28 | | | {% else %} |
29 | | | <span style="color:green">povolen</span> |
30 | | | {% endif %} |
31 | | | </td> |
32 | | | </tr> |
33 | | | <tr> |
34 | | | <td align="left"> |
35 | | | <form method=post action="{{lb.navigate("Home","logout")}}"> |
36 | | | <input type="submit" name="logout" value="odhlĂĄsit se"> |
37 | | | </form> |
38 | | | </td> |
39 | | | <td align="left"> |
40 | | | <form method=post action="{{lb.navigate("Home","changePasswd")}}"> |
41 | | | <input type="button" name="change_password" value="zmÄnit heslo" |
42 | | | onclick="get_variable('password', 'novĂŠ heslo');" /> |
43 | | | </form> |
44 | | | </td> |
45 | | | <td></td> |
46 | | | <td colspan="2" align="right"> |
47 | | | <form method=post action="{{lb.navigate("Home","setWritable")}}"> |
48 | | | {% if not system.writeEnabled %} |
49 | | | <button type="submit" name="writable" value="true">povolit zĂĄpis</button> |
50 | | | {% else %} |
51 | | | <button type="submit" name="writable" value="false">uzamknout</button> |
52 | | | {% endif %} |
53 | | | </form> |
54 | | | </td> |
55 | | | </tr> |
56 | | | </table> |
57 | | | {% else %} |
58 | | | <form method=post action="{{lb.navigate("Home","login")}}"> |
59 | | | <table width="98%"> |
60 | | | <tr> |
61 | | | <td align="left" width="11%">jmĂŠno:</td> |
62 | | | <td align="left" width="20%"> |
63 | | | <input type="text" name="jmeno" size="14"> |
64 | | | </td> |
65 | | | <td></td><td></td> |
66 | | | </tr> |
67 | | | <tr> |
68 | | | <td align="left">heslo:</td> |
69 | | | <td align="left"> |
70 | | | <input type="password" name="heslo" size="14"> |
71 | | | </td> |
72 | | | <td></td><td></td> |
73 | | | </tr> |
74 | | | <tr> |
75 | | | <td colspan="2" align="left"> |
76 | | | <input type="submit" name="login" value="pĹihlĂĄsit se"> |
77 | | | </td> |
78 | | | <td></td><td></td> |
79 | | | </tr> |
80 | | | </table> |
81 | | | </form> |
82 | | | {% endif %} |
83 | | | </div> |
84 | | | </div> |
85 | | | |
86 | | | <form method=post action="{{lb.navigate("Home","saveConfig")}}"> |
87 | | | <table width="98%"> |
88 | | | <tr><td colspan="2"><hr></td></tr> |
89 | | | <tr> |
90 | | | <td colspan="2">obecnĂŠ</td> |
91 | | | </tr> |
92 | | | <tr><td colspan="2"><hr></td></tr> |
93 | | | {% for entry in system.overview %} |
94 | | | <tr> |
95 | | | <td align="left">{{entry.label}}: </td> |
96 | | | <td align="right"> |
97 | | | <input title="{{entry.label}}" type="text" name="{{entry.name}}" |
98 | | | value="{{entry.value}}" size="23"> |
99 | | | </td> |
100 | | | </tr> |
101 | | | {% endfor %} |
102 | | | |
103 | | | <tr><td colspan="2"><hr></td></tr> |
104 | | | <tr> |
105 | | | <td colspan="2">sluĹžby spouĹĄtÄnĂŠ po startu systĂŠmu</td> |
106 | | | </tr> |
107 | | | <tr><td colspan="2"><hr></td></tr> |
108 | | | {% for entry in system.services %} |
109 | | | <tr> |
110 | | | <td align=left> |
111 | | | <table width="100%"> |
112 | | | <tr> |
113 | | | <td align="left" width="100">{{entry.caption}}: </td> |
114 | | | |
115 | | | {% if entry.active %} |
116 | | | <td width="20"> |
117 | | | <img src="{{lb.linkToResource("images/active.png")}}" alt="zapnutĂ˝"/> |
118 | | | </td> |
119 | | | <td> |
120 | | | {% if login %} |
121 | | | <input type="submit" name="{{entry.name}}_BUTTON" value="zastavit"> |
122 | | | {% endif %} |
123 | | | </td> |
124 | | | {% else %} |
125 | | | <td width="20"> |
126 | | | <img src="{{lb.linkToResource("images/inactive.png")}}" alt="vypnutĂ˝"/> |
127 | | | </td> |
128 | | | <td> |
129 | | | {% if login %} |
130 | | | <input type="submit" name="{{entry.name}}_BUTTON" value="spustit"> |
131 | | | {% endif %} |
132 | | | </td> |
133 | | | {% endif %} |
134 | | | </tr> |
135 | | | </table> |
136 | | | </td> |
137 | | | <td align=right> |
138 | | | <!--<div class="btn-group btn-toggle"> |
139 | | | <button type="button" class="btn btn-xs btn-default">ON</button> |
140 | | | <button type="button" class="btn btn-xs btn-primary active">OFF</button> |
141 | | | </div>
--> |
142 | | | <select name="{{entry.name}}" size="1"> |
143 | | | <option {% if entry.enabled %} selected="selected" {% endif %} |
144 | | | value="ano">ano</option> |
145 | | | <option {% if not entry.enabled %} selected="selected" {% endif %} |
146 | | | value="ne">ne</option> |
147 | | | </select> |
148 | | | </td> |
149 | | | </tr> |
150 | | | {% endfor %} |
151 | | |
|
152 | | | |
153 | | | <tr><td colspan="2"><hr></td></tr> |
154 | | | <tr> |
155 | | | <td colspan="2"><input type="submit" name="save" value="uloĹžit"></td> |
156 | | | </tr> |
157 | | | {% endif %} |
158 | | | </table> |
159 | | | </form> |
160 | | | </td> |
161 | | | <td width="475" align="left" valign="top"> |
162 | | | <table width="98%"> |
163 | | | <tr> |
164 | | | <td align="left"> |
165 | | | <span id="active_ips_text">pĹipojenĂ˝ch poÄĂtaÄĹŻ: </span> |
166 | | | </td> |
167 | | | <td width="150" align="right"> |
168 | | | <span id="active_ips"> |
169 | | | <a href="/graphs.php?users=0"> |
170 | | | {{system.activeIPs}} |
171 | | | </a> |
172 | | | </span> |
173 | | | </td> |
174 | | | </tr> |
175 | | | </table> |
176 | | | <table width="98%"> |
177 | | | <tr> |
178 | | | <td align="left" > |
179 | | | <span id="active_ips_text">celkovĂ˝ pĹenos dat: </span> |
180 | | | </td> |
181 | | | <td width="200" align="right"> |
182 | | | <span id="total_rate"> |
183 | | | <a href="/graphs.php?interface=all">{{system.totalThroughput}}/s</a> |
184 | | | </span> |
185 | | | </td> |
186 | | | </tr> |
187 | | | <tr height="30"> |
188 | | | </tr> |
189 | | | </table> |
190 | | |
|
191 | | | |
192 | | | <ul class="bullets"> |
193 | | | <li>Na tĂŠto strĂĄnce mĹŻĹžete nastavit spouĹĄtÄnĂ sluĹžeb po startu, |
194 | | | nĂĄzev routeru, dns servery a dalĹĄĂ vlastnosti routeru.</li> |
195 | | | <li>Pro nastavenĂ jednotlivĂ˝ch sĂĹĽovĂ˝ch karet, pĹejdÄte na strĂĄnku |
196 | | | <a href="{{lb.navigate("Networking","showPage")}}">nastavenĂ sĂĹĽovĂ˝ch karet</a>.</li> |
197 | | | <li>Pokud chcete vypnout, restartovat, nebo editovat firewall, |
198 | | | pĹejdÄte na strĂĄnku <a href="{{lb.navigate("Firewall","showPage")}}">firewall</a>.</li> |
199 | | | <li>Chcete-li vypnout, aktualizovat, nebo upravit data pro macguarda, |
200 | | | pĹejdÄte na strĂĄnku <a href="{{lb.navigate("Macguard","showPage")}}">macguard</a>.</li> |
201 | | | <li>ZozbrazenĂ rout, start, restart quaggy a editaci souborĹŻ quaggy |
202 | | | mĹŻĹžete provĂŠst na strĂĄnce <a href="{{lb.navigate("Quagga","showPage")}}">quagga</a>.</li> |
203 | | | </ul> |
204 | | | <hr> |
205 | | | {% endif %} |
206 | | | <ul {% if login %}style="color:#777777" {% endif %}class="bullets"> |
207 | | | <li>VĂtejte, tyto strĂĄnky slouŞà k administraci routeru s operaÄnĂm |
208 | | | systĂŠmem Freenet router.</li> |
209 | | | <li>Po pĹihlĂĄĹĄenĂ zĂskĂĄte dodateÄnĂĄ prĂĄva, budete moci editovat |
210 | | | konfiguraÄnĂ soubory, uklĂĄdat nastavenĂ i restartovat router.</li> |
211 | | | <li>Bez pĹihlĂĄĹĄenĂ si mĹŻĹžete prohlĂĹžet statistiky, grafy a nÄkterĂŠ dalĹĄĂ |
212 | | | systĂŠmovĂŠ informace.</li> |
213 | | | <li>Chcete-li si prohlĂŠdnout kolik jste stĂĄhl(a) za poslednĂ mÄsĂc dat |
214 | | | nebo jestli je VĂĄĹĄ poÄĂtaÄ povolen v macguardovi pĹejdÄte na strĂĄnku |
215 | | | <a href="{{lb.navigate("Monitoring","showPage")}}">monitoring</a>.</li> |
216 | | | <li>DalĹĄĂ informace o routeru a pouĹžĂtĂŠm softwaru najde na strĂĄnce |
217 | | | <a href="{{lb.navigate("Others","showPage")}}">dalĹĄĂ</a>.</li> |
218 | | | </ul> |
219 | | |
|
220 | | | |
221 | | | </td> |
222 | | | </tr> |
223 | | | </table> |
224 | | |
|
225 | | | |
226 | | |
|