@@ -45,23 +45,23 @@ function watchGroupButton($group) {
45
45
$ hasWatched = $ groupModel ->hasWatchedGroup ($ group );
46
46
$ groupID = $ group ->GroupID ;
47
47
$ output = '' ;
48
- $ text = $ hasWatched ? t ('Stop watching the group ' ) : t ('Watch the group ' );
48
+ $ text = $ hasWatched ? t ('Stop watching forum ' ) : t ('Watch forum ' );
49
49
50
50
if ($ canWatch && !$ hasWatched ) {
51
- $ icon = watchIcon ($ hasWatched , $ text );
51
+ $ icon = ' <span class="tooltiptext"> ' . $ text . ' </span> ' . watchIcon ($ hasWatched , '' );
52
52
$ output .= anchor (
53
53
$ icon ,
54
54
"/group/watch/ {$ groupID }/ " . Gdn::session ()->transientKey (),
55
- 'Hijack watchButton ' . ($ hasWatched ? ' isWatching ' : '' ),
55
+ 'Hijack watchButton ' . ($ hasWatched ? ' isWatching tooltip ' : 'tooltip ' ),
56
56
['title ' => $ text , 'aria-pressed ' => $ hasWatched ? 'true ' : 'false ' , 'role ' => 'button ' , 'tabindex ' => '0 ' ]
57
57
);
58
58
59
59
} else if ($ hasWatched ) {
60
- $ icon = watchIcon ($ hasWatched ,$ text );
60
+ $ icon = ' <span class="tooltiptext"> ' . $ text . ' </span> ' . watchIcon ($ hasWatched ,'' );
61
61
$ output .= anchor (
62
62
$ icon ,
63
63
"/group/unwatch/ {$ groupID }/ " . Gdn::session ()->transientKey (),
64
- 'Hijack watchButton ' . ($ hasWatched ? ' isWatching ' : '' ),
64
+ 'Hijack watchButton ' . ($ hasWatched ? ' isWatching tooltip ' : 'tooltip ' ),
65
65
['title ' => $ text , 'aria-pressed ' => $ hasWatched ? 'true ' : 'false ' , 'role ' => 'button ' , 'tabindex ' => '0 ' ]
66
66
);
67
67
}
0 commit comments