Fossil SCM

Update the 'eagle' skin to use the 'menulink' procedure.

mistachkin 2015-03-15 03:43 trunk
Commit 6440c7f91d87b1cf4acc0fc3c92754b9c7deb58e
1 file changed +21 -12
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -70,10 +70,15 @@
7070
}
7171
set logourl [getLogoUrl $baseurl]
7272
</th1>
7373
<a href="$logourl">
7474
<img src="$logo_image_url" border="0" alt="$project_name">
75
+ <th1>
76
+ if {[anycap jor]} {
77
+ html "<a class='rss' href='$home/timeline.rss'></a>"
78
+ }
79
+ </th1>
7580
</a>
7681
</div>
7782
<div class="title">$<title></div>
7883
<div class="status"><nobr><th1>
7984
if {[info exists login]} {
@@ -101,34 +106,38 @@
101106
}
102107
updateClock();
103108
</script>
104109
<div class="mainmenu">
105110
<th1>
106
-html "<a href='$home$index_page'>Home</a>\n"
107
-html "<a href='$home/help'>Help</a>\n"
111
+proc menulink {url name} {
112
+ upvar home home
113
+ html "<a href='$home$url'>$name</a>\n"
114
+}
115
+menulink $index_page Home
116
+menulink /help Help
108117
if {[anycap jor]} {
109
- html "<a href='$home/timeline'>Timeline</a>\n"
118
+ menulink /timeline Timeline
110119
}
111120
if {[anoncap oh]} {
112
- html "<a href='$home/tree?ci=tip'>Files</a>\n"
121
+ menulink /dir?ci=tip Files
113122
}
114123
if {[anoncap o]} {
115
- html "<a href='$home/brlist'>Branches</a>\n"
116
- html "<a href='$home/taglist'>Tags</a>\n"
124
+ menulink /brlist Branches
125
+ menulink /taglist Tags
117126
}
118127
if {[anoncap r]} {
119
- html "<a href='$home/ticket'>Tickets</a>\n"
128
+ menulink /ticket Tickets
120129
}
121130
if {[anoncap j]} {
122
- html "<a href='$home/wiki'>Wiki</a>\n"
131
+ menulink /wiki Wiki
123132
}
124133
if {[hascap s]} {
125
- html "<a href='$home/setup'>Admin</a>\n"
134
+ menulink /setup Admin
126135
} elseif {[hascap a]} {
127
- html "<a href='$home/setup_ulist'>Users</a>\n"
136
+ menulink /setup_ulist Users
128137
}
129138
if {[info exists login]} {
130
- html "<a href='$home/login'>Logout</a>\n"
139
+ menulink /login Logout
131140
} else {
132
- html "<a href='$home/login'>Login</a>\n"
141
+ menulink /login Login
133142
}
134143
</th1></div>
135144
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -70,10 +70,15 @@
70 }
71 set logourl [getLogoUrl $baseurl]
72 </th1>
73 <a href="$logourl">
74 <img src="$logo_image_url" border="0" alt="$project_name">
 
 
 
 
 
75 </a>
76 </div>
77 <div class="title">$<title></div>
78 <div class="status"><nobr><th1>
79 if {[info exists login]} {
@@ -101,34 +106,38 @@
101 }
102 updateClock();
103 </script>
104 <div class="mainmenu">
105 <th1>
106 html "<a href='$home$index_page'>Home</a>\n"
107 html "<a href='$home/help'>Help</a>\n"
 
 
 
 
108 if {[anycap jor]} {
109 html "<a href='$home/timeline'>Timeline</a>\n"
110 }
111 if {[anoncap oh]} {
112 html "<a href='$home/tree?ci=tip'>Files</a>\n"
113 }
114 if {[anoncap o]} {
115 html "<a href='$home/brlist'>Branches</a>\n"
116 html "<a href='$home/taglist'>Tags</a>\n"
117 }
118 if {[anoncap r]} {
119 html "<a href='$home/ticket'>Tickets</a>\n"
120 }
121 if {[anoncap j]} {
122 html "<a href='$home/wiki'>Wiki</a>\n"
123 }
124 if {[hascap s]} {
125 html "<a href='$home/setup'>Admin</a>\n"
126 } elseif {[hascap a]} {
127 html "<a href='$home/setup_ulist'>Users</a>\n"
128 }
129 if {[info exists login]} {
130 html "<a href='$home/login'>Logout</a>\n"
131 } else {
132 html "<a href='$home/login'>Login</a>\n"
133 }
134 </th1></div>
135
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -70,10 +70,15 @@
70 }
71 set logourl [getLogoUrl $baseurl]
72 </th1>
73 <a href="$logourl">
74 <img src="$logo_image_url" border="0" alt="$project_name">
75 <th1>
76 if {[anycap jor]} {
77 html "<a class='rss' href='$home/timeline.rss'></a>"
78 }
79 </th1>
80 </a>
81 </div>
82 <div class="title">$<title></div>
83 <div class="status"><nobr><th1>
84 if {[info exists login]} {
@@ -101,34 +106,38 @@
106 }
107 updateClock();
108 </script>
109 <div class="mainmenu">
110 <th1>
111 proc menulink {url name} {
112 upvar home home
113 html "<a href='$home$url'>$name</a>\n"
114 }
115 menulink $index_page Home
116 menulink /help Help
117 if {[anycap jor]} {
118 menulink /timeline Timeline
119 }
120 if {[anoncap oh]} {
121 menulink /dir?ci=tip Files
122 }
123 if {[anoncap o]} {
124 menulink /brlist Branches
125 menulink /taglist Tags
126 }
127 if {[anoncap r]} {
128 menulink /ticket Tickets
129 }
130 if {[anoncap j]} {
131 menulink /wiki Wiki
132 }
133 if {[hascap s]} {
134 menulink /setup Admin
135 } elseif {[hascap a]} {
136 menulink /setup_ulist Users
137 }
138 if {[info exists login]} {
139 menulink /login Logout
140 } else {
141 menulink /login Login
142 }
143 </th1></div>
144

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button