mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
View available new versions on dashboard
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12245 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8a60464b18
commit
a35ff711c4
6 changed files with 134 additions and 0 deletions
|
|
@ -305,10 +305,16 @@ class adminAdminView extends admin
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get need update from easy install
|
||||
$oAutoinstallAdminModel = getAdminModel('autoinstall');
|
||||
$needUpdateList = $oAutoinstallAdminModel->getNeedUpdateList();
|
||||
|
||||
Context::set('module_list', $module_list);
|
||||
Context::set('needUpdate', $isUpdated);
|
||||
Context::set('addTables', $addTables);
|
||||
Context::set('needUpdate', $needUpdate);
|
||||
Context::set('newVersionList', $needUpdateList);
|
||||
|
||||
// gathering enviroment check
|
||||
$mainVersion = join('.', array_slice(explode('.', __ZBXE_VERSION__), 0, 2));
|
||||
|
|
|
|||
|
|
@ -1516,4 +1516,8 @@
|
|||
<value xml:lang="ko"><![CDATA[아니오]]></value>
|
||||
<value xml:lang="en"><![CDATA[No]]></value>
|
||||
</item>
|
||||
<item name="available_new_version">
|
||||
<value xml:lang="ko"><![CDATA[새 버전을 사용할 수 있습니다]]></value>
|
||||
<value xml:lang="en"><![CDATA[Available new versions]]></value>
|
||||
</item>
|
||||
</lang>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,14 @@
|
|||
</block>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="message update" cond="count($newVersionList)">
|
||||
<h2>{$lang->available_new_version}</h2>
|
||||
<ul>
|
||||
<li loop="$newVersionList => $key, $package" style="margin:0 0 4px 0">
|
||||
[{$lang->typename[$package->type]}] {$package->title} ver. {$package->version} - <a href="{$package->url}&return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->update}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="dashboard">
|
||||
<section class="status">
|
||||
<h2>{$lang->current_state}</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue