From: Foxtons Web Design Date: Wed, 24 Mar 2010 17:23:20 +0000 (+0000) Subject: major design changes - almost there X-Git-Tag: 0.000006_01~1^2~1^2~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=08d8bb0825edfcb9b6970ec08d7769d878bd7f49 major design changes - almost there --- diff --git a/root/_diff.tt2 b/root/_diff.tt2 old mode 100644 new mode 100755 index 404de8b..4b217d2 --- a/root/_diff.tt2 +++ b/root/_diff.tt2 @@ -1,14 +1,27 @@ [% INCLUDE inc/syntax_highlight_css.tt2 %] + +

Differences

+ +
+ [% FOREACH item IN diff %] -
- diff --git [%# FIXME %] - [% item.a %] - [% item.b %] + +

diff --git [%# FIXME %] + [% item.a %] + [% item.b %] +

+ + + + +
+
[% blobs.${loop.index} %]
+
- [% item.index %] -
-
-
[% blobs.${loop.index} %]
+ [% item.index.replace("index","Index") %]
+ [% END %] + +
\ No newline at end of file diff --git a/root/_diff_tree.tt2 b/root/_diff_tree.tt2 old mode 100644 new mode 100755 index eb9a845..2fc0ce3 --- a/root/_diff_tree.tt2 +++ b/root/_diff_tree.tt2 @@ -1,18 +1,13 @@ +

[% diff_tree.size %] file[% "s" IF diff_tree.size > 1 %] in this commit ([%- Commit.sha1 || HEAD -%])

+ - - - + + + - - - - - - - [% FOREACH line IN diff_tree -%] @@ -32,9 +27,9 @@ %] [% END %] diff --git a/root/fragment/ref/commit.tt2 b/root/fragment/ref/commit.tt2 old mode 100644 new mode 100755 index cc0ee50..551d103 --- a/root/fragment/ref/commit.tt2 +++ b/root/fragment/ref/commit.tt2 @@ -1,35 +1,63 @@ -
- [% - short_cmt(Commit.comment) | html; +
filestatusactionsFileStatusActions
filestatusactions
- [% IF !line.is_new %]diff[% END %] - blob - [% IF !line.is_new %]history[% END %] + [% IF !line.is_new %]diff[% END %] + [% IF !line.is_new %]history[% END %] + blob
+ + + + + + + + + + + + + + + + + + + + + + + + + +
ID (sha1)Last changeMessageByRole
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7) %][% time_since(Commit.authored_time) %] + [% Commit.comment | html%] + [% + INCLUDE '_refs.tt2' object = commit; - %] - + %][% Commit.author.name | html %]Author
[% time_since(Commit.committed_time) %][% Commit.committer.name %]Committer
-
-
author
-
[% Commit.author.name | html %] <[% Commit.author.email %]>
- [% time_since(Commit.authored_time) %]
-
committer
-
[% Commit.committer.name %] <[% Commit.committer.email %]>
- [% time_since(Commit.committed_time) %]
-
commit
-
[% Commit.sha1 %]
-
tree
-
[% Commit.tree_sha1 %] - tree -
- [% FOREACH parent IN Commit.parents %] -
parent
-
[% parent.sha1 %] - - commit - diff - -
- [% END %] -
+ + + + + + + + + + + + + + + [% FOREACH parent IN Commit.parents %] + + + + + +[% END %] +
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7), hide_sha1_output = 1 %]
Commit
[% Commit.sha1 %]
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.tree_sha1.substr(0, 7), hide_sha1_output = 1 %]
Tree
[% Commit.tree_sha1 %]tree
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = parent.sha1.substr(0, 7), hide_sha1_output = 1 %]
Parent
[% parent.sha1 %] + commit + diff +
+ -
[% Commit.comment | html%]
[% # In the case of merge commits there will be no diff tree. diff --git a/root/fragment/ref/diff_fancy.tt2 b/root/fragment/ref/diff_fancy.tt2 old mode 100644 new mode 100755 diff --git a/root/fragment/ref/tree.tt2 b/root/fragment/ref/tree.tt2 index 6a68e53..68cfa12 100755 --- a/root/fragment/ref/tree.tt2 +++ b/root/fragment/ref/tree.tt2 @@ -27,7 +27,7 @@ raw blame [% END %] - Short log + Short log [% END %] diff --git a/root/fragment/repository/longlog.tt2 b/root/fragment/repository/longlog.tt2 old mode 100644 new mode 100755 index 7bc7f48..aefca13 --- a/root/fragment/repository/longlog.tt2 +++ b/root/fragment/repository/longlog.tt2 @@ -1,36 +1 @@ -
-[% INCLUDE 'inc/log_pager.tt2' %] -
- [% FOREACH line IN log_lines %] -
-
- [% message = line.comment | html; - message.replace("\n", "
") %] -
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1 %]
-
-
- - - - [% IF line.author.name != line.committer.name %] - - - [% END %] -
author - - [% line.author.name | html %]
authored time[% time_since(line.authored_time) %]
committer - - [% line.committer.name | html %] -
committered time[% line.committed_time %]
- [% time_since(line.authored_time) %] -
- commit - | commitdiff - | tree -
-
-
- [% END %] -
-[% INCLUDE 'inc/log_pager.tt2' %] -
+[% INCLUDE 'fragment/repository/shortlog.tt2' longlogformat = 1 %] \ No newline at end of file diff --git a/root/fragment/repository/shortlog.tt2 b/root/fragment/repository/shortlog.tt2 index 6c7414d..7b2b5b6 100755 --- a/root/fragment/repository/shortlog.tt2 +++ b/root/fragment/repository/shortlog.tt2 @@ -19,8 +19,12 @@ [% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %] [% time_since(line.authored_time) %] - [% short_cmt(line.comment) | html %] - [% INCLUDE '_refs.tt2' object = line %] + [% IF longlogformat %] + [% message = line.comment | html; message.replace("\n", "
") %] + [% ELSE %] + [% short_cmt(line.comment) | html %] + [% INCLUDE '_refs.tt2' object = line %] + [% END %] [% line.author.name | html %] diff --git a/root/inc/chroma_hash.tt2 b/root/inc/chroma_hash.tt2 index 3dcb31c..d201d96 100755 --- a/root/inc/chroma_hash.tt2 +++ b/root/inc/chroma_hash.tt2 @@ -7,4 +7,7 @@ END; -%] -
[% sha1part %]
+
+[% IF !hide_sha1_output %] +
[% sha1part %]
+[% END %] diff --git a/root/nav/path.tt2 b/root/nav/path.tt2 old mode 100644 new mode 100755 index 3efebc6..3567c09 --- a/root/nav/path.tt2 +++ b/root/nav/path.tt2 @@ -1,7 +1,6 @@ -
- [% Repository.name %] + [% Repository.name %] (tree) [% FOREACH part IN filename.split('/') %] [% path = loop.first ? part : path _ '/' _ part %] / [% part %] [% END %] -
+ diff --git a/root/ref/blob.tt2 b/root/ref/blob.tt2 old mode 100644 new mode 100755 index aa489a7..ad81803 --- a/root/ref/blob.tt2 +++ b/root/ref/blob.tt2 @@ -1,13 +1,14 @@ [% INCLUDE inc/syntax_highlight_css.tt2 %] -
+

[% INCLUDE 'nav/path.tt2' %]

+ [% IF object.type == 'commit' %]
[% short_cmt(head.comment) %]
[% END %] - [% INCLUDE 'nav/path.tt2' %] -
-
[% subinclude('/fragment/ref/blob', c.req.captures, c.req.args.to_path) %]
-
-
+ +
[% subinclude('/fragment/ref/blob', c.req.captures, c.req.args.to_path) | html %]
+ + + \ No newline at end of file diff --git a/root/ref/diff_fancy.tt2 b/root/ref/diff_fancy.tt2 old mode 100644 new mode 100755 index 23f453d..312c097 --- a/root/ref/diff_fancy.tt2 +++ b/root/ref/diff_fancy.tt2 @@ -1,15 +1,25 @@ -
-
- [% short_cmt(Commit.comment) | html %] -
+ + + + + + + + + + + + + + + + + +
ID (sha1)Last changeMessageBy
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7) %][% time_since(Commit.authored_time) %][% short_cmt(Commit.comment) | html %][% Commit.author.name | html %]
-
- [% Commit.author.name | html %]
[% time_since(Commit.authored_time) %] -
[% # What I really want is @{ c.req.args } subinclude('/fragment/' _ c.action, c.req.captures, c.req.args.0 c.req.args.1) %] -
diff --git a/root/repository/tags.tt2 b/root/repository/tags.tt2 old mode 100644 new mode 100755 diff --git a/root/static/css/core.css b/root/static/css/core.css index a7b1945..ce3442d 100755 --- a/root/static/css/core.css +++ b/root/static/css/core.css @@ -8,26 +8,24 @@ body{ a img{ border:0; } -div{ - aborder:1px solid red; -} /* structure */ .sub_holder{ width:970px; margin:0 auto; - aborder:1px solid red; text-align:left; } -#header{ +#header_holder{ margin-top:20px; - aheight:300px; } +#header{ + height:60px; +} + #content_holder{ background:transparent url(/static/i/bg_content.png) repeat-y center center; - aborder:1px solid olive; } #content{ min-height:200px; @@ -35,7 +33,6 @@ div{ background:transparent url(/static/i/bg_bottom.png) no-repeat center bottom; } #content_inner{ - aborder:1px solid blue; padding-bottom:30px; background:transparent url(/static/i/bg_top.png) no-repeat; } @@ -74,13 +71,18 @@ div{ /* nav tabs */ #nav_logs{ + width:80%; clear:both; float:right; - margin:-18px 50px 0 50px; + margin:-5px 50px 0 0; +} +#nav_logs ul{ + margin:0; + padding:0; } #nav_logs li{ display:block; - float:left; + float:right; list-style:none; margin:0; padding:0; @@ -130,6 +132,30 @@ h1 a{ h1 a:hover{ color:#EAF2F5; } +h2{ + font-size:1.85em; + font-weight:normal; + color:#666; + margin:30px 15px 20px; +} +h2 span{ + color:#ccc; +} +h3{ + margin:0; + color:#fff; + padding:9px 5px 9px 10px; + font-size:1em; +} +h3 a{ + color:#ffffff; +} +h4 a{ + color:#ffffff; +} +h4 a:hover{ + color:#EAF2F5; +} p, td, a{ @@ -145,35 +171,36 @@ a:hover{ float:left; vertical-align:middle; margin-right:8px; - text-indent:-999999999999px; + text-indent:-999999px; width:21px; height:21px; + outline:none; } -.commit{ +a.commit{ background:transparent url(/static/i/icons/commit.png) no-repeat; } -.diff{ +a.diff{ background:transparent url(/static/i/icons/diff.png) no-repeat; } -.tree{ +a.tree{ background:transparent url(/static/i/icons/tree.png) no-repeat; } -.shortlog{ +a.shortlog{ background:transparent url(/static/i/icons/shortlog.png) no-repeat; } -.longlog{ +a.longlog{ background:transparent url(/static/i/icons/longlog.png) no-repeat; } -.blob{ +a.blob{ background:transparent url(/static/i/icons/blob.png) no-repeat; } -.blame{ +a.blame{ background:transparent url(/static/i/icons/blame.png) no-repeat; } -.history{ +a.history{ background:transparent url(/static/i/icons/history.png) no-repeat; } -.raw{ +a.raw{ background:transparent url(/static/i/icons/raw.png) no-repeat; } .sha1_holder{ @@ -188,6 +215,30 @@ a:hover{ } +a.rss_logo { + float: right; + padding: 3px 0px; + width: 35px; + line-height: 10px; + border: 1px solid; + border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e; + color: #ffffff; + background-color: #ff6600; + font-weight: bold; + font-family: sans-serif; + font-size: 70%; + font-style: normal; + text-align: center; + text-decoration: none; + margin: 3px; +} + +a.rss_logo:hover { + background-color: #ee5500; +} + + + /* paging */ .pager{ width:100%; @@ -229,6 +280,13 @@ th{ th a{ color:#fff; } +.summary tr{ + background-color:#FAFAFA; + border-bottom:1px solid #fff; +} +.summary td{ + vertical-align:middle !important; +} tr.invert{ background-color:#f0f0f0; } @@ -254,8 +312,104 @@ table.listing{ border-collapse:collapse; } .listing td{ + vertical-align:top; padding:9px 5px 9px 10px; } .action-list{ width:120px; -} \ No newline at end of file +} + +.diff-tree{ + background-color:#f0f0f0; +} +.diff-tree th{ + background-color:#666; +} +.diff-tree tr{ + border-bottom:1px solid #fff; +} +.diff-tree td{ + padding:6px 5px 4px 10px; +} +.differences{ + margin-top:0; + padding:0px 15px; +} +.differences pre{ + line-height:140%; + font-size:12px; + overflow:auto; + margin:0; + padding:10px; + border:1px solid #ddd; + background-color:#f0f0f0; +} +.diff-head{ + background-color:#666; + color:#fff; + margin:10px 0 0 0 !important; + border:1px solid #ddd; + border-bottom:none; + font-family: monospace; + padding:10px; + font-size:13px; +} +.diff-index { + margin:0 0 30px 0; + border:1px solid #ddd; + border-top:none; + background-color:#ccc; + padding:5px 10px; +} + + +/* /blame */ +#blame pre, #blame tt { + margin: 0; + font-size: 0.9em; +} +#blame .commit-info { +} +#blame .lineno { + text-align: right; + padding: 0 8px; +} +#blame a { + text-decoration: none; +} +#blame { + overflow-x: scroll; +} +#blame tr.alt { + background-color: #f7f7f7; +} +#blame tbody tr:hover { + background-color: #fefeaa; +} +#blame td { + padding: 0 0.2em; +} +#blame td.lineno { + background-color: #eee; +} +#blame td.date, #blame td.author, #blame td.commit-info { +} +#blame tbody td.data { + padding-left: 5px; + background-color: #333; + color: #ddd; +} + +/* /blob */ +pre.blob { + background-color: #333; + color: #ddd; + border-left: solid 3px #c33; + padding: 5px; + padding-left: 15px; + margin: 20px 15px 20px; + overflow:auto; +} + +/* /blobdiff etc */ + diff --git a/root/static/css/site.css b/root/static/css/site.css old mode 100644 new mode 100755 diff --git a/root/static/css/syntax/Diff.css b/root/static/css/syntax/Diff.css old mode 100644 new mode 100755 index a76b6fb..0303541 --- a/root/static/css/syntax/Diff.css +++ b/root/static/css/syntax/Diff.css @@ -1,16 +1,21 @@ span.Keyword { - color: #777; + color: #aaa; font-weight: bold; } span.DataType { + background-color:#F3E6FF; color: purple; } span.Normal { - color: gray; + } span.String { - color: green; + background-color:#CCF5CC; + padding:2px 0; + color: #006F00; } span.Others { - color: red; + background-color:#F3CCCC; + padding:2px 0; + color: #750000; } diff --git a/root/static/i/icons/blame.png b/root/static/i/icons/blame.png index 690a489..7a6730b 100755 Binary files a/root/static/i/icons/blame.png and b/root/static/i/icons/blame.png differ diff --git a/root/wrapper.tt2 b/root/wrapper.tt2 index b32c888..ebcdeab 100755 --- a/root/wrapper.tt2 +++ b/root/wrapper.tt2 @@ -25,27 +25,29 @@ -