Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added cap "n" to "r" in skins that show a /ticket link in their header, since the handler for it allows the page to show for those who can only file new tickets, not just those who can see existing tickets. Also fixed some skins that were using "anoncap" to test this: it needs to work for all logged-in users, not just "anonymous". |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | skin-cap-matching |
Files: | files | file ages | folders |
SHA3-256: |
f4e3abce268b0cddd269ad83e2f51c41 |
User & Date: | wyoung 2019-08-27 02:16:31 |
Context
2019-08-27
| ||
02:16 | Added cap "n" to "r" in skins that show a /ticket link in their header, since the handler for it allows the page to show for those who can only file new tickets, not just those who can see existing tickets. Also fixed some skins that were using "anoncap" to test this: it needs to work for all logged-in users, not just "anonymous". Leaf check-in: f4e3abce user: wyoung tags: skin-cap-matching | |
00:07 | Changed all of the [anycap jor] TH1 calls in the stock skins wrapping the generation of that skin's /timeline and /timeline.rss links to [anycap ijr2] to match the user caps the timeline HTTP hit handler actually checks for in the C code. This is a branch in part because it needs review, but also it's the start of a broader effort to check the other cap checks in the skins to make sure they a) match what the C code checks for; and b) match each other. check-in: 9cee8cf5 user: wyoung tags: skin-cap-matching | |
Changes
Changes to skins/ardoise/header.txt.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
if {[hascap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[hascap r]} {
menulink /ticket Tickets
}
if {[hascap j]} {
menulink /wiki Wiki
}
if {[hascap o]} {
menulink /help Help
|
| |
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
if {[hascap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[anycap nr]} {
menulink /ticket Tickets
}
if {[hascap j]} {
menulink /wiki Wiki
}
if {[hascap o]} {
menulink /help Help
|
Changes to skins/black_and_white/header.txt.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
if {[anoncap o]} {
html "<a href='$home/brlist'>Branches</a>\n"
html "<a href='$home/taglist'>Tags</a>\n"
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
html "<a href='$home/forum'>Forum</a>\n"
}
if {[anoncap r]} {
html "<a href='$home/ticket'>Tickets</a>\n"
}
if {[anoncap j]} {
html "<a href='$home/wiki'>Wiki</a>\n"
}
if {[hascap s]} {
html "<a href='$home/setup'>Admin</a>\n"
|
| |
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
if {[anoncap o]} { html "<a href='$home/brlist'>Branches</a>\n" html "<a href='$home/taglist'>Tags</a>\n" } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { html "<a href='$home/forum'>Forum</a>\n" } if {[anycap nr]} { html "<a href='$home/ticket'>Tickets</a>\n" } if {[anoncap j]} { html "<a href='$home/wiki'>Wiki</a>\n" } if {[hascap s]} { html "<a href='$home/setup'>Admin</a>\n" |
Changes to skins/blitz/header.txt.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
if {[hascap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[hascap r]} {
menulink /ticket Tickets
}
if {[hascap j]} {
menulink /wiki Wiki
}
if {[hascap o]} {
menulink /help Help
|
| |
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
if {[hascap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[anycap nr]} {
menulink /ticket Tickets
}
if {[hascap j]} {
menulink /wiki Wiki
}
if {[hascap o]} {
menulink /help Help
|
Changes to skins/blitz_no_logo/header.txt.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
if {[hascap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[hascap r]} {
menulink /ticket Tickets
}
if {[hascap j]} {
menulink /wiki Wiki
}
if {[hascap o]} {
menulink /help Help
|
| |
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
if {[hascap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[anycap nr]} {
menulink /ticket Tickets
}
if {[hascap j]} {
menulink /wiki Wiki
}
if {[hascap o]} {
menulink /help Help
|
Changes to skins/default/header.txt.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
if {[hascap o]} {
menulink /brlist Branches desktoponly
menulink /taglist Tags wideonly
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum wideonly
}
if {[hascap r]} {
menulink /ticket Tickets wideonly
}
if {[hascap j]} {
menulink /wiki Wiki wideonly
}
if {[hascap s]} {
menulink /setup Admin {}
} elseif {[hascap a]} {
menulink /setup_ulist Users {}
}
</th1></div>
<div id='hbdrop'></div>
|
| |
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
if {[hascap o]} {
menulink /brlist Branches desktoponly
menulink /taglist Tags wideonly
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum wideonly
}
if {[anycap nr]} {
menulink /ticket Tickets wideonly
}
if {[hascap j]} {
menulink /wiki Wiki wideonly
}
if {[hascap s]} {
menulink /setup Admin {}
} elseif {[hascap a]} {
menulink /setup_ulist Users {}
}
</th1></div>
<div id='hbdrop'></div>
|
Changes to skins/eagle/header.txt.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
if {[anoncap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[anoncap r]} {
menulink /ticket Tickets
}
if {[anoncap j]} {
menulink /wiki Wiki
}
menulink /sitemap More...
if {[hascap s]} {
|
| |
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
if {[anoncap o]} { menulink /brlist Branches menulink /taglist Tags } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { menulink /forum Forum } if {[anycap nr]} { menulink /ticket Tickets } if {[anoncap j]} { menulink /wiki Wiki } menulink /sitemap More... if {[hascap s]} { |
Changes to skins/enhanced1/header.txt.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
if {[anoncap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[anoncap r]} {
menulink /ticket Tickets
}
if {[anoncap j]} {
menulink /wiki Wiki
}
if {[hascap s]} {
menulink /setup Admin
|
| |
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
if {[anoncap o]} { menulink /brlist Branches menulink /taglist Tags } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { menulink /forum Forum } if {[anycap nr]} { menulink /ticket Tickets } if {[anoncap j]} { menulink /wiki Wiki } if {[hascap s]} { menulink /setup Admin |
Changes to skins/khaki/header.txt.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
if {[anoncap o]} {
html "<a href='$home/brlist'>Branches</a>\n"
html "<a href='$home/taglist'>Tags</a>\n"
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
html "<a href='$home/forum'>Forum</a>\n"
}
if {[anoncap r]} {
html "<a href='$home/ticket'>Tickets</a>\n"
}
if {[anoncap j]} {
html "<a href='$home/wiki'>Wiki</a>\n"
}
if {[hascap s]} {
html "<a href='$home/setup'>Admin</a>\n"
|
| |
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
if {[anoncap o]} { html "<a href='$home/brlist'>Branches</a>\n" html "<a href='$home/taglist'>Tags</a>\n" } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { html "<a href='$home/forum'>Forum</a>\n" } if {[anycap nr]} { html "<a href='$home/ticket'>Tickets</a>\n" } if {[anoncap j]} { html "<a href='$home/wiki'>Wiki</a>\n" } if {[hascap s]} { html "<a href='$home/setup'>Admin</a>\n" |
Changes to skins/original/header.txt.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
if {[anoncap o]} {
html "<a href='$home/brlist'>Branches</a>\n"
html "<a href='$home/taglist'>Tags</a>\n"
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
html "<a href='$home/forum'>Forum</a>\n"
}
if {[anoncap r]} {
html "<a href='$home/ticket'>Tickets</a>\n"
}
if {[anoncap j]} {
html "<a href='$home/wiki'>Wiki</a>\n"
}
if {[hascap s]} {
html "<a href='$home/setup'>Admin</a>\n"
|
| |
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
if {[anoncap o]} { html "<a href='$home/brlist'>Branches</a>\n" html "<a href='$home/taglist'>Tags</a>\n" } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { html "<a href='$home/forum'>Forum</a>\n" } if {[anycap nr]} { html "<a href='$home/ticket'>Tickets</a>\n" } if {[anoncap j]} { html "<a href='$home/wiki'>Wiki</a>\n" } if {[hascap s]} { html "<a href='$home/setup'>Admin</a>\n" |
Changes to skins/plain_gray/header.txt.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
if {[anoncap o]} {
html "<a href='$home/brlist'>Branches</a>\n"
html "<a href='$home/taglist'>Tags</a>\n"
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
html "<a href='$home/forum'>Forum</a>\n"
}
if {[anoncap r]} {
html "<a href='$home/ticket'>Tickets</a>\n"
}
if {[anoncap j]} {
html "<a href='$home/wiki'>Wiki</a>\n"
}
if {[hascap s]} {
html "<a href='$home/setup'>Admin</a>\n"
|
| |
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
if {[anoncap o]} { html "<a href='$home/brlist'>Branches</a>\n" html "<a href='$home/taglist'>Tags</a>\n" } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { html "<a href='$home/forum'>Forum</a>\n" } if {[anycap nr]} { html "<a href='$home/ticket'>Tickets</a>\n" } if {[anoncap j]} { html "<a href='$home/wiki'>Wiki</a>\n" } if {[hascap s]} { html "<a href='$home/setup'>Admin</a>\n" |
Changes to skins/rounded1/header.txt.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
if {[anoncap o]} {
html "<a href='$home/brlist'>Branches</a>\n"
html "<a href='$home/taglist'>Tags</a>\n"
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
html "<a href='$home/forum'>Forum</a>\n"
}
if {[anoncap r]} {
html "<a href='$home/ticket'>Tickets</a>\n"
}
if {[anoncap j]} {
html "<a href='$home/wiki'>Wiki</a>\n"
}
if {[hascap s]} {
html "<a href='$home/setup'>Admin</a>\n"
|
| |
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
if {[anoncap o]} { html "<a href='$home/brlist'>Branches</a>\n" html "<a href='$home/taglist'>Tags</a>\n" } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { html "<a href='$home/forum'>Forum</a>\n" } if {[anycap nr]} { html "<a href='$home/ticket'>Tickets</a>\n" } if {[anoncap j]} { html "<a href='$home/wiki'>Wiki</a>\n" } if {[hascap s]} { html "<a href='$home/setup'>Admin</a>\n" |
Changes to skins/xekri/header.txt.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
if {[anoncap o]} {
menulink /brlist Branches
menulink /taglist Tags
}
if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
menulink /forum Forum
}
if {[anoncap r]} {
menulink /ticket Tickets
}
if {[anoncap j]} {
menulink /wiki Wiki
}
menulink /sitemap More...
if {[hascap s]} {
|
| |
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
if {[anoncap o]} { menulink /brlist Branches menulink /taglist Tags } if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { menulink /forum Forum } if {[anycap nr]} { menulink /ticket Tickets } if {[anoncap j]} { menulink /wiki Wiki } menulink /sitemap More... if {[hascap s]} { |