[Bps-public-commit] r9084 - in SVKUI/trunk: share/web/static/css
clsung at bestpractical.com
clsung at bestpractical.com
Tue Sep 18 22:41:06 EDT 2007
Author: clsung
Date: Tue Sep 18 22:41:05 2007
New Revision: 9084
Modified:
SVKUI/trunk/lib/SVKUI/View.pm
SVKUI/trunk/share/web/static/css/app.css
Log:
- this patch complete svk list layout, add some code from next patch,too
Modified: SVKUI/trunk/lib/SVKUI/View.pm
==============================================================================
--- SVKUI/trunk/lib/SVKUI/View.pm (original)
+++ SVKUI/trunk/lib/SVKUI/View.pm Tue Sep 18 22:41:05 2007
@@ -24,7 +24,6 @@
if (defined($arg)) {
$arg = URI::Escape::uri_unescape($arg);
my @args = split (' ', $arg);
- warn Dumper(@args);
$ret = SVKUI->svk->$cmd(@args);
} else {
$ret = SVKUI->svk->$cmd();
@@ -64,7 +63,6 @@
show_action_result("SVKUI",x)
})
}
- warn "hi here";
};
template 'notification' => sub {
@@ -107,9 +105,7 @@
dl {
dt {'This project already synced' }
#set(message => 'yoyo');show('notify');
- warn "hi";
SVKUI::Event::Notification->new( 'haha' )->publish;
- warn "there";
dt {Jifty->web->link( url => '/project/'.$project->name, label => "Go to project page");}
}
} else {
@@ -118,12 +114,10 @@
if ($project->try_sync()) {
redirect '/__jifty/error/sync_failed';
}
- warn "Success?";
dl {
dt {'This project synced' }
# blockquote { SVKUI->output };
};
- warn "or fail?";
}
};
@@ -132,7 +126,7 @@
title { _('Interactive SVKUI') };
my $mirror_name = get('mirror_name');
my $cmd = get('command') || '';
- my $args = get ('arguments') || '';
+ my $args = get ('args') || '';
my $relpath = get ('path') || '';
my $mirror = SVKUI::Model::Project->new();
$mirror->load_by_cols( name => $mirror_name );
@@ -150,7 +144,11 @@
}
$ret = $command->cmd($cmd, $mirror->localrepos, $rootpath);
} elsif ($cmd ne '') {
- $ret = $command->cmd($cmd, $rootpath.'/'.$relpath);
+ if ($args ne '') {
+ $ret = $command->cmd($cmd, $rootpath.'/'.$relpath, $args);
+ } else {
+ $ret = $command->cmd($cmd, $rootpath.'/'.$relpath);
+ }
} else {
$ret = $command->cmd('help', 'commands');
}
@@ -163,11 +161,11 @@
if ($cmd eq 'list') {
h2 { ('Output of '.$cmd.' in '.$mirror->name.' project') };
my @relpaths = split /\n/, $command->output_raw;
- div { { id is 'jumprev' }
- div {
- label { 'Go To' }
- }
- };
+# div { { id is 'jumprev' }
+# div {
+# label { 'Go To' }
+# }
+# };
table { {class is 'listing' } { id is 'dirlist' } {summary is 'Browse Listing'}
thead {
row {
@@ -180,20 +178,21 @@
}
tbody {
for my $_relpath (@relpaths) {
+ my (undef, $_rev, $_last, $_size, $_mon, $_day, $_time, $_name) = split / {1,12}/, $_relpath;
row {
if ($_relpath =~ m#/$#m) {
cell {
- Jifty->web->link (url => '/ia2/'.$mirror->name."/list?path=$relpath/$_relpath", label => $_relpath);
+ Jifty->web->link (url => '/ia2/'.$mirror->name."/list?args=-v&path=$relpath/$_name", label => $_name, class => 'dir');
};
} else {
cell {
- Jifty->web->link (url => '/ia2/'.$mirror->name."/annotate?path=$relpath/$_relpath", label => $_relpath);
+ Jifty->web->link (url => '/ia2/'.$mirror->name."/annotate?args=-v&path=$relpath/$_name", label => $_name, class => 'file');
};
}
- cell { 'N/A' };
- cell { 'N/A' };
- cell { 'N/A' };
- cell { 'N/A' };
+ cell { {class is 'rev'} $_rev };
+ cell { {class is 'size'} $_size };
+ cell { {class is 'age'} 'N/A' };
+ cell { {class is 'change'} $_last };
}
}
};
Modified: SVKUI/trunk/share/web/static/css/app.css
==============================================================================
--- SVKUI/trunk/share/web/static/css/app.css (original)
+++ SVKUI/trunk/share/web/static/css/app.css Tue Sep 18 22:41:05 2007
@@ -25,20 +25,84 @@
color: #b71111;
}
-/* for browse */
+/* for browsing */
+/* Styles for tabular listings such as those used for displaying directory
+ contents and report results. */
+table.listing {
+ clear: both;
+ border-bottom: 1px solid #d7d7d7;
+ border-collapse: collapse;
+ border-spacing: 0;
+ margin-top: 1em;
+ width: 100%;
+}
+table.listing th { text-align: left; padding: 0 1em .1em 0; font-size: 12px }
+table.listing thead { background: #f7f7f0 }
+table.listing thead th {
+ border: 1px solid #d7d7d7;
+ border-bottom-color: #999;
+ font-size: 11px;
+ font-weight: bold;
+ padding: 2px .5em;
+ vertical-align: bottom;
+}
+table.listing thead th :link:hover, table.listing thead th :visited:hover {
+ background-color: transparent;
+}
+table.listing thead th a { border: none; padding-right: 12px }
+table.listing th.asc a, table.listing th.desc a { font-weight: bold }
+table.listing th.asc a, table.listing th.desc a {
+ background-position: 100% 50%;
+ background-repeat: no-repeat;
+}
+table.listing th.asc a { }
+table.listing th.desc a { }
+table.listing tbody td, table.listing tbody th {
+ border: 1px dotted #ddd;
+ padding: .33em .5em;
+ vertical-align: top;
+}
+table.listing tbody td a:hover, table.listing tbody th a:hover {
+ background-color: transparent;
+}
+table.listing tbody tr { border-top: 1px solid #ddd }
+table.listing tbody tr.even { background-color: #fcfcfc }
+table.listing tbody tr.odd { background-color: #f7f7f7 }
+table.listing tbody tr:hover { background: #eed !important }
+/* Browser */
+h1 { font-size: 16px; letter-spacing: -0.028em; margin: 0; padding: 0 0 .5em }
+h1 :link, h1 :visited, h1 .filename { border: none; padding: 0 .2em }
+h1 :link, h1 :visited { color: #b00 }
+h1 .first:link, h1 .first:visited { color: #998 }
+h1 .sep { color: #666; padding: 0 .1em }
+
+img.icon { vertical-align: middle; }
+
+#navpath { float: left; }
+
+#language-selection { float: right; font-size: 10px; }
+#language-selection select { font-size: 10px; }
+#language-selection input { font-size: 10px; }
+
+#content { clear: both; }
+
+#jumprev { float: right; font-size: 10px; margin: 0 0 0 }
+#jumprev form { margin: 0 }
+#jumprev input { font-size: 10px; margin-right: 0 }
+
/* Styles for the directory entries table
- * (extends the styles for "table.listing") */
+ (extends the styles for "table.listing") */
#dirlist { margin-top: 0 }
#dirlist td.rev, #dirlist td.age, #dirlist td.change, #dirlist td.size {
- color: #888;
- white-space: nowrap;
+ color: #888;
+ white-space: nowrap;
}
#dirlist td.size { text-align: right; }
#dirlist td.name { width: 100% }
#dirlist td.name a, #dirlist td.name span {
- background-position: 0% 50%;
- background-repeat: no-repeat;
- padding-left: 20px;
+ background-position: 0% 50%;
+ background-repeat: no-repeat;
+ padding-left: 20px;
}
#dirlist td.name a.parent { background-image: url(parent.png) }
#dirlist td.name a.dir { background-image: url(folder.png) }
@@ -47,3 +111,155 @@
#dirlist td.name span.file { background-image: url(filedeny.png) }
#dirlist td.name a, #dirlist td.rev a { border-bottom: none; display: block }
#dirlist td.change * { font-size: 9px }
+
+/* Styles for the property list table
+ (extends the styles for "table.listing") */
+#proplist td.propvalue { width: 100%; }
+
+/* Styles for the revision log table
+ (extends the styles for "table.listing") */
+#chglist { margin-top: 0 }
+#chglist td.date, #chglist td.diff { white-space: nowrap }
+#chglist td.rev, #chglist td.chgset { text-align: center }
+#chglist td.rev a, #chglist td.chgset a { border-bottom: none }
+#chglist td.summary { width: 100%; }
+
+/* Styles for the revision info in the file module */
+#info {
+ background: #f7f7f0;
+ border: 1px solid #d7d7d7;
+ border-collapse: collapse;
+ border-spacing: 0;
+ clear: both;
+ width: 100%;
+}
+#info th {
+ font-size: 11px;
+ font-weight: bold;
+ padding: 2px .5em;
+ white-space: nowrap;
+ vertical-align: top;
+}
+#info td.message {
+ font-size: 11px;
+ padding: 2px .5em;
+ vertical-align: top;
+ width: 100%;
+}
+#info .message ul { padding: 0; margin: 0 2em }
+#info .message p { margin: 0; padding: 0 }
+
+/* Styles for the HTML preview */
+#preview { background: #fff; clear: both; margin: 0 }
+#preview .code-block { border-top: 1px solid #999; margin: 0 }
+#preview .image-file { overflow: hidden }
+#preview .image-file img { max-width: 100% }
+
+.code-block {
+ border: 1px dotted #d7d7d7;
+ margin: 1em 0;
+ padding: .3em;
+ overflow: auto
+}
+.image-file { background: #eee; padding: .3em }
+.image-file img { }
+
+/* Default */
+.css_default, .c_default, .code_default, .pl_default, .p_default,
+.hphp_default, .yaml_default, .code-block span {
+ font-family: monospace;
+}
+
+/* Comments */
+.code-comment, .css_comment, .c_comment, .c_commentdoc, .c_commentline,
+.c_commentlinedoc, .h_comment,.pl_commentline, .p_commentblock,
+.p_commentline, .hphp_commentblock, .hphp_commentline,
+.yaml_comment {
+ color: #998;
+ font-style: italic;
+}
+
+/* Language keyword */
+.code-keyword, .pl_word { color: #789; font-weight: bold }
+
+/* Type */
+.code-type, .c_word, .c_word2, .p_classname, .hphp_classname{
+ color: #468;
+ font-weight: bold;
+}
+
+/* Function */
+.code-func, .p_defname {
+ color: #900;
+ font-weight: bold;
+ border-bottom: none;
+}
+
+/* Pre-processor */
+.code-prep, .c_preprocessor, .pl_preprocessor, .yaml_identifier {
+ color: #999;
+ font-weight: bold;
+}
+
+/* Language construct */
+.code-lang, .p_word { color: #000; font-weight: bold }
+
+/* String */
+.code-string, .c_string, .c_stringeol, .css_doublestring, .css_singlestring,
+.h_singlestring, .h_doublestring, .pl_string, .pl_string_q, .pl_string_qq,
+.pl_string_qr, .pl_string_qw, .pl_string_qx, .pl_backticks, .pl_character,
+.p_string, .p_stringeol, .hphp_string, .hphp_stringeol, .hphp_triple,
+.hphp_tripledouble, .p_character, .p_triple, .p_tripledouble {
+ color: #b84;
+ font-weight: normal;
+}
+
+/* Variable name */
+.code-var { color: #f9f }
+
+/* SilverCity-specific styles */
+.css_id, .css_class, .css_pseudoclass, .css_tag { color: #900000 }
+.css_directive { color: #009000; font-weight: bold }
+.css_important { color: blue }
+.css_operator { color: #000090; font-weight: bold }
+.css_tag { font-weight: bold }
+.css_unknown_identifier, .css_unknown_pseudoclass { color: red }
+.css_value { color: navy }
+.c_commentdockeyword { color: navy; font-weight: bold }
+.c_commentdockeyworderror { color: red; font-weight: bold }
+.c_character, .c_regex, .c_uuid, .c_verbatim { color: olive }
+.c_number { color: #099 }
+.h_asp { color: #ff0 }
+.h_aspat { color: #ffdf00 }
+.h_attribute { color: teal }
+.h_attributeunknown { color: red }
+.h_cdata { color: #ffdf00 }
+.h_entity { color: purple }
+.h_number { color: #099 }
+.h_other { color: purple }
+.h_script, .h_tag, .h_tagend { color: navy }
+.h_tagunknown { color: red }
+.h_xmlend, .h_xmlstart { color: blue }
+.pl_datasection { color: olive }
+.pl_error { color: red; font-weight: bold }
+.pl_hash { color: #000 }
+.pl_here_delim, .pl_here_q, .pl_here_qq, .pl_here_qx, .pl_longquote { color: olive }
+.pl_number { color: #099 }
+.pl_pod { font-style: italic }
+.pl_regex, .pl_regsubst { color: olive }
+.p_number { color: #099 }
+.hphp_character { color: olive }
+.hphp_defname { color: #099; font-weight: bold }
+.hphp_number { color: #099 }
+.hphp_word { color: navy; font-weight: bold }
+.yaml_document { color: gray; font-style: italic }
+.yaml_keyword { color: #808 }
+.yaml_number { color: #800 }
+.yaml_reference { color: #088 }
+.v_comment { color: gray; font-style: italic }
+.v_commentline, .v_commentlinebang { color: red; font-style: italic }
+.v_number, .v_preprocessor { color: #099 }
+.v_string, .v_stringeol { color: olive }
+.v_user{ color: blue; font-weight: bold }
+.v_word, .v_word3 { color: navy; font-weight: bold }
+.v_word2 { color: green; font-weight: bold }
More information about the Bps-public-commit
mailing list