Skip to content

Commit

Permalink
impl #945
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancYescO committed Dec 15, 2020
1 parent 779cf3c commit 361e122
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion decompressed/gui_file/www/cards/001_modgui.lp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ngx.print('\
');

local html = {}
html[#html + 1] = format(T"GUI Version %s", content.gui_version)
html[#html + 1] = format(T"GUI Version <a onclick=\"event.stopPropagation()\" target=\"_blank\" href=https://github.com/Ansuel/tch-nginx-gui/releases/tag/%s>%s</a>", content.gui_version:match("(.+)-"), content.gui_version)
html[#html + 1] = '<span class="simple-desc">'
html[#html + 1] = ' <div class="light_icon fas fa-cog gui_version_status '..content.outdated_ver..'"></div>'
html[#html + 1] = '<span class="gui_version_status_text">'..content.outdated_ver_text..'</span>'
Expand Down
2 changes: 1 addition & 1 deletion decompressed/gui_file/www/docroot/modals/modgui-modal.lp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ html[#html + 1] = ui_helper.createSwitch(T"GUI Auto Update", "update_autoupgrade
html[#html + 1] = ui_helper.createInputText(T"Update Hours", "update_autoupgrade_hour", modgui_settings["update_autoupgrade_hour"],autoupgrade_mon_1)
if content["outdated_ver"] == "1" then
html[#html + 1] = ui_helper.createLabel(T"State", T"Update Found", basic)
html[#html + 1] = ui_helper.createLabel(T"New Version", content["new_ver"], basic)
html[#html + 1] = ui_helper.createLabel(T"New Version", format("<a target=\"_blank\" href=https://github.com/Ansuel/tch-nginx-gui/releases/tag/%s>%s</a>", content["new_ver"], content["new_ver"]), basic)
html[#html + 1] = ui_helper.createButton(T"Update GUI", T"Update", "icon-refresh", upgrade_gui)
else
html[#html + 1] = ui_helper.createLabel(T"State", T"No Update found", basic)
Expand Down
2 changes: 1 addition & 1 deletion decompressed/gui_file/www/gateway-snippets/header.lp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ ngx.print('\
if cui.outdated_ver == "0" then
alert_style_upper.alert.class = "alert hide"
end
html[#html + 1] = ui_helper.createAlertBlock(format(T'Update available! Version: <strong id="new-version-text">%s</strong>',cui.new_ver),alert_style_upper)
html[#html + 1] = ui_helper.createAlertBlock(format(T'Update available! Version: <strong id="new-version-text"><a target=\"_blank\" href=https://github.com/Ansuel/tch-nginx-gui/releases/tag/%s>%s</a></strong>',cui.new_ver,cui.new_ver),alert_style_upper)

local autoupgrade_view = cui.autoupgrade_view
if not ( autoupgrade_view == "none" ) and not ( autoupgrade_view == "" ) then
Expand Down

0 comments on commit 361e122

Please sign in to comment.