浏览代码

UI: Add missing title attributes

The buttons of the normal view should have the same title attribute, than
the mini screen buttons.

I missed this in 0587158b6be930f53325baa54fccadc54d18c9a3.
Alexander Sulfrian 9 年之前
父节点
当前提交
5916ff3c1b
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      client/components/boards/boardHeader.jade

+ 6 - 5
client/components/boards/boardHeader.jade

@@ -16,20 +16,21 @@ template(name="boardHeaderBar")
                 span
                   = currentBoard.stars
 
-            a.board-header-btn(class="{{#if currentUser.isBoardAdmin}}js-change-visibility{{else}}is-disabled{{/if}}")
+            a.board-header-btn(
+              class="{{#if currentUser.isBoardAdmin}}js-change-visibility{{else}}is-disabled{{/if}}"
+              title="{{_ currentBoard.permission}}")
               i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
               span {{_ currentBoard.permission}}
 
-            a.board-header-btn.js-watch-board
+            a.board-header-btn.js-watch-board(
+              title="{{_ watchLevel }}")
               if $eq watchLevel "watching"
                 i.fa.fa-eye
-                span {{_ 'watching'}}
               if $eq watchLevel "tracking"
                 i.fa.fa-bell
-                span {{_ 'tracking'}}
               if $eq watchLevel "muted"
                 i.fa.fa-bell-slash
-                span {{_ 'muted'}}
+              span {{_ watchLevel}}
 
           else
             a.board-header-btn.js-log-in(