Improve module update notification

- 모듈 업데이트 후 "success"라고만 뜨는 문제를 수정
- 반드시 필요한 "모듈 업데이트"를 "새 버전 설치"로 오해하여 피하는 일이 없도록
  "설정 완료"라는 표현을 사용하고 설명을 추가함
- 새 버전이 있을 경우 현재 버전과 새 버전을 함께 표시하고, 모듈 업데이트와
  혼동하지 않도록 "자료실"에 등록된 새 버전 알림이라는 설명을 추가함
This commit is contained in:
Kijin Sung 2017-12-03 23:03:21 +09:00
parent e78189ea5c
commit 0396d32ae5
5 changed files with 27 additions and 43 deletions

View file

@ -25,22 +25,29 @@
</div>
<div class="message update" cond="$addTables || $needUpdate">
<h2 cond="$needUpdate && $addTables">{$lang->need_update_and_table}</h2>
<h2 cond="$needUpdate && !$addTables">{$lang->need_update}</h2>
<h2 cond="!$needUpdate && $addTables">{$lang->need_table}</h2>
<h2>{$lang->need_complete_configuration}</h2>
<p>{$lang->need_complete_configuration_details}</p>
<ul>
<block loop="$module_list => $key,$value">
<li style="margin:0 0 4px 0" cond="$value->need_install">{$value->module} - <button type="button" onclick="doInstallModule('{$value->module}')" class="x_btn x_btn-small">{$lang->cmd_create_db_table}</button></li>
<li style="margin:0 0 4px 0" cond="$value->need_update">{$value->module} - <button type="button" onclick="doUpdateModule('{$value->module}')" class="x_btn x_btn-small">{$lang->cmd_module_update}</button></li>
<li style="margin:0 0 4px 0" cond="$value->need_install">
{$value->title} ({$value->module})
&nbsp; <button type="button" onclick="doInstallModule('{$value->module}')" class="x_btn x_btn-small">{$lang->need_table}</button>
</li>
<li style="margin:0 0 4px 0" cond="$value->need_update">
{$value->title} ({$value->module})
&nbsp; <button type="button" onclick="doUpdateModule('{$value->module}')" class="x_btn x_btn-small">{$lang->need_update}</button>
</li>
</block>
</ul>
</div>
<div class="message update" cond="count($newVersionList)">
<h2>{$lang->available_new_version}</h2>
<p>{$lang->available_new_version_details}</p>
<ul>
<li loop="$newVersionList => $key, $package" style="margin:0 0 4px 0">
[{$lang->typename[$package->type]} <a class="x_icon-question-sign" href="{$package->helpUrl}" target="_blank" cond="$package->helpUrl">{$lang->help}</a>] {$package->title} ver. {$package->version} - <a href="{$package->url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->update}</a>
[{$lang->typename[$package->type]}] {$package->title} ver. {$package->currentVersion} → {$package->version}
&nbsp; <a href="{$package->url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->update}</a>
</li>
</ul>
</div>