aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/server.html
blob: de1c8b53c063b50eabe0d84966a28b46f748d818 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
  {include="includes"}
</head>
<body>
{include="page.header"}

<div class="pure-g">
  <div class="pure-u-lg-1-4 pure-u-1-24"></div>
  <div class="pure-u-lg-1-2 pure-u-22-24 page-form server-tables-page">
    <h2 class="window-title">{'Server administration'|t}</h2>

    <h3 class="window-subtitle">{'General'|t}</h3>

    <div class="pure-g server-row">
      <div class="pure-u-lg-1-2 pure-u-1 server-label">
        <p>{'Index URL'|t}</p>
      </div>
      <div class="pure-u-lg-1-2 pure-u-1">
        <p><a href="{$index_url}" title="{$pagetitle}">{$index_url}</a></p>
      </div>
    </div>
    <div class="pure-g server-row">
      <div class="pure-u-lg-1-2 pure-u-1 server-label">
        <p>{'Base path'|t}</p>
      </div>
      <div class="pure-u-lg-1-2 pure-u-1">
        <p>{$base_path}</p>
      </div>
    </div>
    <div class="pure-g server-row">
      <div class="pure-u-lg-1-2 pure-u-1 server-label">
        <p>{'Client IP'|t}</p>
      </div>
      <div class="pure-u-lg-1-2 pure-u-1">
        <p>{$client_ip}</p>
      </div>
    </div>
    <div class="pure-g server-row">
      <div class="pure-u-lg-1-2 pure-u-1 server-label">
        <p>{'Trusted reverse proxies'|t}</p>
      </div>
      <div class="pure-u-lg-1-2 pure-u-1">
        {if="count($trusted_proxies) > 0"}
        <p>
          {loop="$trusted_proxies"}
          {$value}<br>
          {/loop}
        </p>
        {else}
        <p>{'N/A'|t}</p>
        {/if}
      </div>
    </div>

    {include="server.requirements"}

    <h3 class="window-subtitle">Version</h3>

    <div class="pure-g server-row">
      <div class="pure-u-lg-1-2 pure-u-1 server-label">
        <p>Current version</p>
      </div>
      <div class="pure-u-lg-1-2 pure-u-1">
        <p>{$current_version}</p>
      </div>
    </div>

    <div class="pure-g server-row">
      <div class="pure-u-lg-1-2 pure-u-1 server-label">
        <p>Latest release</p>
      </div>
      <div class="pure-u-lg-1-2 pure-u-1">
        <p>
          <a href="{$release_url}" title="{'Visit releases page on Github'|t}">
            {$latest_version}
          </a>
        </p>
      </div>
    </div>

    <h3 class="window-subtitle">Thumbnails</h3>

    <div class="pure-g server-row">
      <div class="pure-u-lg-1-2 pure-u-1 server-label">
        <p>Thumbnails status</p>
      </div>
      <div class="pure-u-lg-1-2 pure-u-1">
        <p>
          {if="$thumbnails_mode==='all'"}
            {'All'|t}
          {elseif="$thumbnails_mode==='common'"}
            {'Only common media hosts'|t}
          {else}
            {'None'|t}
          {/if}
        </p>
      </div>
    </div>

    {if="$thumbnails_mode!=='none'"}
    <div class="center tools-item">
      <a href="{$base_path}/admin/thumbnails" title="{'Synchronize all link thumbnails'|t}">
        <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Synchronize thumbnails'|t}</span>
      </a>
    </div>
    {/if}

    <h3 class="window-subtitle">Cache</h3>

    <div class="center tools-item">
      <a href="{$base_path}/admin/clear-cache?type=main">
        <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Clear main cache</span>
      </a>
    </div>

    <div class="center tools-item">
      <a href="{$base_path}/admin/clear-cache?type=thumbnails">
        <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Clear thumbnails cache</span>
      </a>
    </div>
  </div>
</div>

{include="page.footer"}

</body>
</html>