diff --git a/auto_pt/views.py b/auto_pt/views.py index 3e8a0e2..0487cc8 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -350,7 +350,9 @@ def update_page(request): 'local_logs': local_logs, 'update_notes': update_notes, 'update': update, - 'update_tips': update_tips + 'update_tips': update_tips, + 'branch': ('开发版:{},更新于{}' if branch == 'dev' else '稳定版:{},更新于{}').format( + local_logs[0].get('hexsha'), local_logs[0].get('date')) }) diff --git a/templates/auto_pt/update.html b/templates/auto_pt/update.html index f4863e2..8b2fc1e 100644 --- a/templates/auto_pt/update.html +++ b/templates/auto_pt/update.html @@ -44,12 +44,15 @@ width="300" trigger="hover" content="如果遇到无法更新的情况,您可以选择重建容器或者进入容器命令行到项目根目录执行`git pull`命令!"> - {{ update_tips }} - + 容器已运行:{{ delta }} + + 容器已运行:{{ delta }} + + +
@@ -153,6 +156,7 @@ cid: "{{ cid }}", time: '', show: false, + branch: "{{ branch }}" }, created() { if (this.update) {