You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2017/04/13 21:42:56 UTC

[whimsy] branch master updated: Apply styles

This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  7c945d6   Apply styles
7c945d6 is described below

commit 7c945d62f7acfcb3875efb085cf63bb7bd4ed262
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Thu Apr 13 17:42:52 2017 -0400

    Apply styles
---
 www/committers/svn-info.cgi | 40 ++++++++++++++++++++++++++--------------
 1 file changed, 26 insertions(+), 14 deletions(-)

diff --git a/www/committers/svn-info.cgi b/www/committers/svn-info.cgi
index 4c48dc4..cf94bcb 100755
--- a/www/committers/svn-info.cgi
+++ b/www/committers/svn-info.cgi
@@ -1,19 +1,31 @@
 #!/usr/bin/env ruby
-
+$LOAD_PATH.unshift File.realpath(File.expand_path('../../../lib', __FILE__))
 require 'wunderbar'
+require 'whimsy/asf'
 
 _html do
-  _h1 'ASF SVN info'
-  _style :system
-
-  _form do
-    _input type: 'text', name: 'url', size: 80, placeholder: 'SVN URL'
-    _input type: 'submit', value: 'Submit'
-  end
-
-  if @url
-    # output svn info
-    _.system ['svn', 'info', @url,
-       (['--username', $USER, '--password', $PASSWORD] if $PASSWORD) ]
+  _body? do
+    _style :system
+    _whimsy_header 'ASF SVN info'
+    _whimsy_content do
+      _p.lead 'SVN Info takes a URL and reports info on that file in the repository.'
+      _form do
+        _div.form_group do
+          _label.control_label for: 'url' do
+            _ 'Enter a svn.apache.org/repos URL'
+          end
+          _input.form_control type: 'text', name: 'url', size: 120, placeholder: 'SVN URL'
+        end
+        _div.form_group do
+          _input.btn.btn_primary type: 'submit', value: 'Submit'
+        end
+      end
+      
+      if @url
+        # output svn info
+        _.system ['svn', 'info', @url,
+          (['--username', $USER, '--password', $PASSWORD] if $PASSWORD) ]
+        end
+      end
+    end
   end
-end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].