modified: resource/l10n/zh-CN.toml
modified: resource/template/common/menu.html
This commit is contained in:
		
							parent
							
								
									5d18063dd7
								
							
						
					
					
						commit
						4dad15150c
					
				
							
								
								
									
										18
									
								
								resource/l10n/zh-CN.toml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								resource/l10n/zh-CN.toml
									
									
									
									
										vendored
									
									
								
							@ -2,3 +2,21 @@
 | 
				
			|||||||
other = "哪吒监控"
 | 
					other = "哪吒监控"
 | 
				
			||||||
[Server]
 | 
					[Server]
 | 
				
			||||||
other = "主机"
 | 
					other = "主机"
 | 
				
			||||||
 | 
					[Services]
 | 
				
			||||||
 | 
					other = "服务"
 | 
				
			||||||
 | 
					[Task]
 | 
				
			||||||
 | 
					other = "任务"
 | 
				
			||||||
 | 
					[Notification]
 | 
				
			||||||
 | 
					other = "报警"
 | 
				
			||||||
 | 
					[Settings]
 | 
				
			||||||
 | 
					other = "设置"
 | 
				
			||||||
 | 
					[Home]
 | 
				
			||||||
 | 
					other = "首页"
 | 
				
			||||||
 | 
					[Backtohomepage]
 | 
				
			||||||
 | 
					other = "返回前台"
 | 
				
			||||||
 | 
					[AdminPanel]
 | 
				
			||||||
 | 
					other = "管理后台"
 | 
				
			||||||
 | 
					[Logout]
 | 
				
			||||||
 | 
					other = "注销登录"
 | 
				
			||||||
 | 
					[Login]
 | 
				
			||||||
 | 
					other = "登录"
 | 
				
			||||||
							
								
								
									
										20
									
								
								resource/template/common/menu.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								resource/template/common/menu.html
									
									
									
									
										vendored
									
									
								
							@ -6,15 +6,15 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        {{if .IsAdminPage}}
 | 
					        {{if .IsAdminPage}}
 | 
				
			||||||
        <a class='item{{if eq .MatchedPath "/server"}} active{{end}}' href="/server"><i class="server icon"></i>{{tr "Server"}}</a>
 | 
					        <a class='item{{if eq .MatchedPath "/server"}} active{{end}}' href="/server"><i class="server icon"></i>{{tr "Server"}}</a>
 | 
				
			||||||
        <a class='item{{if eq .MatchedPath "/monitor"}} active{{end}}' href="/monitor"><i class="rss icon"></i>服务</a>
 | 
					        <a class='item{{if eq .MatchedPath "/monitor"}} active{{end}}' href="/monitor"><i class="rss icon"></i>{{tr "Services"}}</a>
 | 
				
			||||||
        <a class='item{{if eq .MatchedPath "/cron"}} active{{end}}' href="/cron"><i class="clock icon"></i>任务</a>
 | 
					        <a class='item{{if eq .MatchedPath "/cron"}} active{{end}}' href="/cron"><i class="clock icon"></i>{{tr "Task"}}</a>
 | 
				
			||||||
        <a class='item{{if eq .MatchedPath "/notification"}} active{{end}}' href="/notification"><i class="bell icon"></i>报警</a>
 | 
					        <a class='item{{if eq .MatchedPath "/notification"}} active{{end}}' href="/notification"><i class="bell icon"></i>{{tr "Notification"}}</a>
 | 
				
			||||||
        <a class='item{{if eq .MatchedPath "/setting"}} active{{end}}' href="/setting">
 | 
					        <a class='item{{if eq .MatchedPath "/setting"}} active{{end}}' href="/setting">
 | 
				
			||||||
            <i class="settings icon"></i>设置
 | 
					            <i class="settings icon"></i>{{tr "Settings"}}
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
        {{else}}
 | 
					        {{else}}
 | 
				
			||||||
        <a class='item{{if eq .MatchedPath "/"}} active{{end}}' href="/"><i class="home icon"></i>首页</a>
 | 
					        <a class='item{{if eq .MatchedPath "/"}} active{{end}}' href="/"><i class="home icon"></i>{{tr "Home"}}</a>
 | 
				
			||||||
        <a class='item{{if eq .MatchedPath "/service"}} active{{end}}' href="/service"><i class="rss icon"></i>服务</a>
 | 
					        <a class='item{{if eq .MatchedPath "/service"}} active{{end}}' href="/service"><i class="rss icon"></i>{{tr "Services"}}</a>
 | 
				
			||||||
        {{end}}
 | 
					        {{end}}
 | 
				
			||||||
        <div class="right menu">
 | 
					        <div class="right menu">
 | 
				
			||||||
            <div class="item">
 | 
					            <div class="item">
 | 
				
			||||||
@ -27,20 +27,20 @@
 | 
				
			|||||||
                    <div class="menu">
 | 
					                    <div class="menu">
 | 
				
			||||||
                        {{if .IsAdminPage}}
 | 
					                        {{if .IsAdminPage}}
 | 
				
			||||||
                        <a class="item" href="/">
 | 
					                        <a class="item" href="/">
 | 
				
			||||||
                            <i class="chart area icon"></i>返回前台
 | 
					                            <i class="chart area icon"></i>{{tr "Backtohomepage"}}
 | 
				
			||||||
                        </a>
 | 
					                        </a>
 | 
				
			||||||
                        {{else}}
 | 
					                        {{else}}
 | 
				
			||||||
                        <a class="item" href="/server">
 | 
					                        <a class="item" href="/server">
 | 
				
			||||||
                            <i class="terminal icon"></i>管理后台
 | 
					                            <i class="terminal icon"></i>{{tr "AdminPanel"}}
 | 
				
			||||||
                        </a>
 | 
					                        </a>
 | 
				
			||||||
                        {{end}}
 | 
					                        {{end}}
 | 
				
			||||||
                        <button class="item" onclick="showConfirm('确认注销?','注销后您必须重新登录才能使用',logout,{{.Admin.ID}})">
 | 
					                        <button class="item" onclick="showConfirm('确认注销?','注销后您必须重新登录才能使用',logout,{{.Admin.ID}})">
 | 
				
			||||||
                            <i class="logout icon"></i>注销登录
 | 
					                            <i class="logout icon"></i>{{tr "Logout"}}
 | 
				
			||||||
                        </button>
 | 
					                        </button>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                {{else}}
 | 
					                {{else}}
 | 
				
			||||||
                <a href="/login" class="ui large positive nezha-primary-btn button"><i class="sign-in icon"></i>登录</a>
 | 
					                <a href="/login" class="ui large positive nezha-primary-btn button"><i class="sign-in icon"></i>{{tr "Login"}}</a>
 | 
				
			||||||
                {{end}}
 | 
					                {{end}}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user