Fossil cgit UI: Check-in [f05b03d6ba]

A fossil theme trying to mimic cgit ui

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improve forum design and menu rendering
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256:f05b03d6bab7cde69ea4db1f81c21cf12a6a66e6df9f689304d8c1090c580e4b
User & Date: milouse 2018-12-05 09:58:08
Context
2018-12-05
09:58
Improve forum design and menu rendering Leaf check-in: f05b03d6ba user: milouse tags: trunk
2018-09-05
17:39
Add WTFPL license file check-in: 6e0feaebca user: milouse tags: trunk
Changes

Changes to css.txt.

131
132
133
134
135
136
137











138
139
140
141
142
143
144
	padding: 2em;
	border-bottom: solid 3px #ccc;
}

div#main img {
	border: none;
}












footer#bottom {
	margin-top: 0.5em;
	text-align: center;
	font-size: 80%;
	color: #ccc;
}







>
>
>
>
>
>
>
>
>
>
>







131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
	padding: 2em;
	border-bottom: solid 3px #ccc;
}

div#main img {
	border: none;
}

div.forumSel {
    background-color: #cccccccc;
    padding: .1em 1em;
}

div.forumHierRoot blockquote, div.forumHier blockquote, div.forumEdit blockquote {
    background-color: #cccccccc;
    border-left: 3px solid #777;
    padding: .1em 1em;
}

footer#bottom {
	margin-top: 0.5em;
	text-align: center;
	font-size: 80%;
	color: #ccc;
}

Changes to header.txt.

17
18
19
20
21
22
23
24
25
26



27
28


29
30




31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47



48
49
50
51
52
53
54
55
56
57
58
59
60
61
    </div>
  </div>
  <p class="desc">$project_description</p>
</header>

<nav id="tabs">
  <th1>
    proc menulink {url name} {
      upvar current_page current
      upvar home home



      if {[string range $url 0 [string length $current]] eq "/$current"} {
        html "<a href='$home$url' class='active'>$name</a>\n"


      } elseif {[string range $current 0 3] eq "home" && $name eq "Home"} {
        html "<a href='$home$url' class='active'>$name</a>\n"




      } elseif {$current eq "repolist" && $name eq "Home"} {
        html "<a href='$home' class='active'>$name</a>\n"
      } else {
        html "<a href='$home$url'>$name</a>\n"
      }
    }
    menulink $index_page Home
    if {[anycap jor]} {
      menulink /timeline Timeline
    }
    if {[hascap oh]} {
      menulink /dir?ci=tip Files
    }
    if {[hascap o]} {
      menulink  /brlist Branches
      menulink  /taglist Tags
    }



    if {[hascap r]} {
      menulink /ticket Tickets
    }
    if {[hascap j]} {
      menulink /wiki Wiki
    }
    if {[hascap s]} {
      menulink /setup Admin
    } elseif {[hascap a]} {
      menulink /setup_ulist Users
    }
  </th1>
</nav>
<div id="main">







|


>
>
>

|
>
>
|
|
>
>
>
>

|

|


|

|


|


|
|

>
>
>

|


|


|

|




17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
    </div>
  </div>
  <p class="desc">$project_description</p>
</header>

<nav id="tabs">
  <th1>
    proc menulink {url name cls} {
      upvar current_page current
      upvar home home
      set cur3 [string range $current 0 2]
      set cur4 [string range $current 0 3]
      set cur5 [string range $current 0 4]
      if {[string range $url 0 [string length $current]] eq "/$current"} {
        html "<a href='$home$url' class='active $cls'>$name</a>\n"
      } elseif {$cur3 eq "tkt" && $name eq "Tickets"} {
        html "<a href='$home$url' class='active $cls'>$name</a>\n"
      } elseif {$cur4 eq "home" && $name eq "Home"} {
        html "<a href='$home$url' class='active $cls'>$name</a>\n"
      } elseif {$cur4 eq "wiki" && $name eq "Wiki"} {
        html "<a href='$home$url' class='active $cls'>$name</a>\n"
      } elseif {$cur5 eq "forum" && $name eq "Forum"} {
        html "<a href='$home$url' class='active $cls'>$name</a>\n"
      } elseif {$current eq "repolist" && $name eq "Home"} {
        html "<a href='$home' class='active $cls'>$name</a>\n"
      } else {
        html "<a href='$home$url' class='$cls'>$name</a>\n"
      }
    }
    menulink $index_page Home {}
    if {[anycap jor]} {
      menulink /timeline Timeline {}
    }
    if {[hascap oh]} {
      menulink /dir?ci=tip Files desktoponly
    }
    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>
</nav>
<div id="main">