Remove whitespace [Gun.io WhitespaceBot]
Gun.io Whitespace Robot [Fri, 28 Oct 2011 00:20:42 +0000 (20:20 -0400)]
Conflicts:

t/model_collectionofrepos.t

17 files changed:
lib/Gitalist/Git/CollectionOfRepositories/FromDirectory/WhiteList.pm
lib/Gitalist/Git/Repository.pm
lib/Gitalist/View/SyntaxHighlight.pm
root/fragment/ref/commit.tt2
root/fragment/ref/history.tt2
root/fragment/ref/tree.tt2
root/fragment/repository/shortlog.tt2
root/inc/history_pager.tt2
root/inc/log_pager.tt2
root/nav/search.tt2
root/ref/blob.tt2
root/static/css/core.css
root/static/css/syntax/Diff.css
root/static/js/site.js
root/wrapper.tt2
t/gitalist.conf
t/lib/TestGitalist.pm

index 7370cec..3ef203c 100644 (file)
@@ -52,7 +52,7 @@ different repository within L</repo_dir>.
 =head1 SEE ALSO
 
 L<Gitalist::Git::CollectionOfRepositories>,
-L<Gitalist::Git::Repository>, 
+L<Gitalist::Git::Repository>,
 L<Gitalist::Git::CollectionOfRepositories::FromDirectory>
 
 =head1 AUTHORS
index abd2330..c6981bd 100644 (file)
@@ -13,7 +13,7 @@ class Gitalist::Git::Repository with (Gitalist::Git::HasUtils, Gitalist::Git::Se
     use List::MoreUtils qw/any zip/;
     use Encode          qw/decode/;
 
-    use if $^O ne 'MSWin32' => 'I18N::Langinfo', qw/langinfo CODESET/; 
+    use if $^O ne 'MSWin32' => 'I18N::Langinfo', qw/langinfo CODESET/;
 
     use Gitalist::Git::Object::Blob;
     use Gitalist::Git::Object::Tree;
index 4f675ab..4d98c36 100644 (file)
@@ -20,7 +20,7 @@ sub render {
 
     # Don't bother with anything over 64kb, it'll be tragically slow.
     return encode_entities $blob if length $blob > 8192;
-    
+
     my $lang = $args->{language};
 
     my $ret;
index c213aea..c81f1fd 100755 (executable)
@@ -29,9 +29,9 @@
 </tbody>
 </table>
   <!-- [% USE dumper; dumper.dump(commit.parents) %] -->
+
+
+
 <table class="listing summary">
        <tr>
                <td class='sha1'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7), hide_sha1_output = 1 %] <div class="sha1_label">Commit</div></td>
@@ -52,7 +52,7 @@
                <a href="[% c.uri_for_action('/ref/diff_fancy', [Repository.name, parent.sha1]) %]" title="Difference" class="button diff">diff</a>
                </td>
        </tr>
-[% END %]       
+[% END %]
 </table>
 
 
index 4a949bb..6f660f4 100755 (executable)
@@ -20,7 +20,7 @@
        <td><input type="radio" name="sha1_b" value="[% line.sha1 %]"[% " checked" IF loop.count == 1 %]/></td>
      <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
      <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
-    
+
      <td>
        [% short_cmt(line.comment) | html %]
        [% INCLUDE '_refs.tt2' object = line.0 %]
@@ -48,6 +48,6 @@
 </form>
 
 <span id='compare-path' class='js-data'>[% filename %]</span>
-<span id="diff-uri" class='js-data'>[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span> 
+<span id="diff-uri" class='js-data'>[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span>
 
 [% INCLUDE 'inc/history_pager.tt2' %]
index e893feb..d83e358 100755 (executable)
@@ -9,7 +9,7 @@
 [% END %]
 [%-
        SET counter         = 1;
-       
+
        # sort files and folders
        SET tree_files          = [];
        SET tree_folders        = [];
index e6d5598..e0d687c 100755 (executable)
@@ -25,7 +25,7 @@
           line.comment | html;
        ELSE;
           short_cmt(line.comment) | html;
-          
+
         END;
        -%]</p>[% INCLUDE '_refs.tt2' object = line %]</td>
        <td class='author'>[% INCLUDE 'inc/gravatar.tt2' email = line.author.email %][% line.author.name | html %]</td>
@@ -44,6 +44,6 @@
 </table>
 </form>
 
-<span id="diff-uri" class="js-data">[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span> 
+<span id="diff-uri" class="js-data">[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span>
 
 [% INCLUDE 'inc/log_pager.tt2' %]
index ed2c123..a19cc95 100755 (executable)
@@ -2,7 +2,7 @@
        [% IF ((page.defined && page > 0) || !page.defined) && (log_lines.first.sha1 != Commit.sha1 || (log_lines.size != c.config.paging.log && page)) %]
        <li class="pager_prev"><a href='[% c.uri_with(pg => (page||0) - 1) %]'>&laquo; Newer commits</a></li>
        [% END %]
-       
+
        [% IF log_lines.size == c.config.paging.log %]
        <li class="pager_next"><a href='[% c.uri_with(pg => (page||0) + 1) %]'>Older commits &raquo;</a></li>
        [% END %]
index 35ad26b..4b07a1e 100755 (executable)
@@ -2,7 +2,7 @@
        [% IF log_lines.first.sha1 != Commit.sha1 || (log_lines.size != c.config.paging.log && page) %]
        <li class="pager_prev"><a href='[% c.uri_with(pg => (page||0) + 1) %]'>&laquo; Newer commits</a></li>
        [% END %]
-       
+
        [% IF log_lines.size == c.config.paging.log %]
        <li class="pager_next"><a href='[% c.uri_with(pg => (page||0) - 1) %]'>Older commits &raquo;</a></li>
        [% END %]
index 9721094..c7ce513 100755 (executable)
@@ -2,7 +2,7 @@
 <div id="page-search">
   <form method="get" action="[% c.uri_for_action('/repository/search', [Repository.name]) %]" enctype="application/x-www-form-urlencoded">
   Search
+
   <input type="text" name="text" value="[% c.req.param('s') %]" />
   <select name="type">
       <option value="commit">commit</option>
@@ -15,7 +15,7 @@
   </select>
   <span title="Extended regular expression"><label><input type="checkbox" name="regexp" value="1">re</label></span>
    <sup><a href="[% c.uri_for_action('/search_help') %]">?</a></sup>
-   
+
    <input type="submit" class="button_submit" value="" />
   </form>
 </div>
index 5afc3ae..9de554c 100755 (executable)
@@ -9,4 +9,4 @@
 [% subinclude('/fragment/ref/blob', c.req.captures, c.req.args.to_path) %]
 
 
+
index cca79a3..98411b1 100755 (executable)
@@ -1,7 +1,7 @@
 #debug_holder{
-       
+
        display:none;
-       
+
        clear:both;
        padding-top:30px;
        margin:30px 0;
index 0303541..4979671 100755 (executable)
@@ -7,7 +7,7 @@ span.DataType {
   color: purple;
 }
 span.Normal {
+
 }
 span.String {
        background-color:#CCF5CC;
index 43340d2..bcf9739 100755 (executable)
@@ -4,7 +4,7 @@ function findPos(obj) {
          do {
                  curleft += obj.offsetLeft;
                  curtop += obj.offsetTop;
-         } 
+         }
          while (obj = obj.offsetParent);
          return [curleft,curtop];
        }
index e4a9057..b8db7d9 100755 (executable)
@@ -17,7 +17,7 @@
     title;
   -%] (Gitalist)</title>
   [% INCLUDE '_header_feeds.tt2' %]
-   
+
        <link rel="stylesheet" type="text/css" href="[% c.uri_for('/core.css') %]" />
        <link rel="shortcut icon" href="[% c.uri_for('/static/favicon.ico') %]" />
        <script src="[% c.uri_for('/static/js/jquery.min.js') %]"></script>
@@ -33,7 +33,7 @@
 
                        <div class="search">
                        [% IF Repository; INCLUDE 'nav/search.tt2'; ELSE; %]
-                       
+
                        <!--
                        [%# FIXME - Search submits to blank(ish) page %]
                        <form method="get" action="[% c.uri_for_action('/search') %]" enctype="application/x-www-form-urlencoded">
                        [% END %]
                        </div>
                </div>
-               
-               
+
+
                <div id="nav_logs" [% 'style="visibility:hidden"' IF c.action.name == "index" %]>
-               
+
                        [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
-                       
+
                        <ul>
                                <li[% ' class="selected"' IF c.action.name.match('tree') %]><a href="[% c.uri_for_action('/ref/tree', c.req.captures) || c.uri_for_action('/repository/tree', c.req.captures) %]" id="tree">Tree</a></li>
 
                                <li[% ' class="selected"' IF c.action.name.match('longlog') %]><a href="[% c.uri_for_action('/' _ path _ '/longlog', c.req.captures) %]" id="log_full">Long log</a></li>
-                               
+
                                <li[% ' class="selected"' IF c.action.name.match('shortlog') %]><a href="[% c.uri_for_action('/' _ path _ '/shortlog', c.req.captures) %]" id="log_short">Short log</a></li>
 
-                               
+
                                <li id="branch_selector">
-                                       Branches 
+                                       Branches
                                        <select id='branch-list'>
                                                <option value="">HEAD</option>
                                        [%- FOREACH branch IN Repository.heads -%]
                                                [% LAST %]
                                                [% END %]
                                        [% END -%]
-                                       
+
                                        </select>
                                </li>
-                               
+
                        </ul>
                </div>
-       
+
                <h1>
                        <a href="[% c.uri_for('/') %]">Home</a>
-               
+
                        [%- IF Repository %]
                / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]">[% Repository.name %]</a>
                        [%- END %]
                                        [% END -%]
                                [% END -%]
                        [%- END %]
-                       
-                       
-                       [%- 
-                               
+
+
+                       [%-
+
                                #FIXME on a history view of a folder, don't show extra actions in dropdown
                                SET on_file_page = 1;
-                               
+
                                SET actions_list = {
                                                "blob"          => 1,
                                                "raw"           => 1,
                                                "blame"         => 1,
                                                "history"       => 1,
                                        };
-                                       
+
                                SET action_name = c.action.name
                                                                        .replace("_"," ")
                                                                        .replace("log", " log")
                                ELSE;
                                        action_name_ucfirst;
                                END;
-                               
+
                        -%]
 
                        </h1>
-       
-                       [%- 
+
+                       [%-
                                IF actions_list.$action_name;
                                '<ul id="actions_nav_list">';
                                        FOREACH action IN actions_list;
                                                action_output = action.key FILTER ucfirst;
-                                               NEXT IF action_output == action_name_ucfirst;   
+                                               NEXT IF action_output == action_name_ucfirst;
                                                action = action.key;
                                                '<li><a href="' _ c.uri_for("/")  _ c.req.path.replace(action_name, action) _ '">' _ action_output _ '</a></li>';
-                                       END;                    
+                                       END;
                                '</ul>';
                                END;
                        -%]
-               
+
        </div>
 </div>
 
-       
+
 <div id="content_holder">
        <div id="content" class="sub_holder">
                <div id="content_inner">
 
-       
+
 
  [% content %]
 
+
                </div>
        </div>
 </div>
 
 <div id="footer_holder">
        <div id="footer" class="sub_holder">
-               
+
                <p>[% IF Repository; Repository.description | html IF Repository.description != "Unnamed repository; edit this file to name it for gitweb." ; END; %]</p>
-       
+
                <a title="git homepage" href="http://git-scm.org"><img src="[% c.uri_for('/logo.png') %]" id="git_logo" alt="git" /></a>
-               
+
                <div id="feeds">
                [% INCLUDE 'inc/footer_feeds.tt2' %]
                </div>
        <div id="debug" class="sub_holder">
 
        <p>Debug:</p>
-       
+
        [% USE Dumper %]
        <pre>
        [% Repository.path %]
        [% Dumper.dump(c.req.args) %]
        </pre>
-       
+
        </div>
 </div>
 
index e5661a1..a8738f9 100644 (file)
@@ -16,7 +16,7 @@ home_link_str "A Gitalist"
 
 # show repository only if this file exists
 # (only effective if this variable evaluates to true)
-# export_ok 
+# export_ok
 
 # XXX Code in config FAIL
 # show repository only if this subroutine returns true
index dcdc539..3a19af3 100644 (file)
@@ -70,7 +70,7 @@ sub Test::WWW::Mechanize::Catalyst::page_links_ok {
 
 sub test_uri {
     my ($uri, $qs) = @_;
-    my $request = "/$uri"; 
+    my $request = "/$uri";
     $request .= "?$qs" if defined $qs;
     my $response = request($request);
     ok($response->is_success || $response->is_redirect, "ok $request");