~ubuntu-branches/ubuntu/karmic/cgiirc/karmic-updates

« back to all changes in this revision

Viewing changes to debian/patches/60_select-and-input-mine.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Mario Holbe
  • Date: 2004-11-08 14:11:52 UTC
  • Revision ID: james.westby@ubuntu.com-20041108141152-4e8m7ca2d8s0zvyy
Tags: 0.5.4-6
* Mario
  + typo in *index.html
* Elrond
  + add debian/watch
  + add 50_reconnect-link.dpatch by Pabs <pabs@zip.to>
    to create link back to login page at /quit
    (Closes: #268794)
* Mario and Elrond
  + fixup our advanced input boxes for IE (heavy work!)
  + Add warnings not to change debian specific settings
    like image_path (closes: #264598)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 60_select-and-input-mine.dpatch by Mario Holbe <Mario.Holbe@RZ.TU-Ilmenau.DE>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Beautify the input+select style.
 
6
 
 
7
 
 
8
diff -ur cgiirc-0.5.4.orig/interfaces/default.pm cgiirc-0.5.4/interfaces/default.pm
 
9
--- cgiirc-0.5.4.orig/interfaces/default.pm     2004-06-19 18:46:05.000000000 +0200
 
10
+++ cgiirc-0.5.4/interfaces/default.pm  2004-06-19 18:43:22.000000000 +0200
 
11
@@ -130,9 +130,10 @@
 
12
    ($interface eq 'default' ? 'nonjs' : $interface) . "\">\n";
 
13
 print <<EOF;
 
14
 <table border="0" cellpadding="5" cellspacing="0">
 
15
-<tr><td colspan="2" align="center" bgcolor="#c0c0dd"><b>CGI:IRC Login</b></td></tr>
 
16
+<tr><td colspan="4" align="center" bgcolor="#c0c0dd"><b>CGI:IRC Login</b></td></tr>
 
17
 EOF
 
18
 for(@$order) {
 
19
+   my $allColumns = 0;
 
20
    my $item = $$items{$_};
 
21
    next unless defined $item;
 
22
    print "<tr><td align=\"right\" bgcolor=\"#f1f1f1\">$_</td><td align=\"left\" bgcolor=\"#f1f1f1\">";
 
23
@@ -145,8 +146,9 @@
 
24
             $tmp = " disabled=\"1\"";
 
25
          }
 
26
          print "<input type=\"text\" name=\"$_\" value=\"\"$tmp/>";
 
27
-        print "</td></tr>\n";
 
28
-        print "<tr><td bgcolor=\"#f1f1f1\"></td><td align=\"left\" bgcolor=\"#f1f1f1\">";
 
29
+        print "</td>\n";
 
30
+        print "<td bgcolor=\"#f1f1f1\">or</td><td align=\"left\" bgcolor=\"#f1f1f1\">";
 
31
+        $allColumns = 1;
 
32
         $js = " onChange=\"$_.value = this.value\"";
 
33
         $_ .= "_select";
 
34
       }
 
35
@@ -162,6 +164,10 @@
 
36
       }
 
37
       print "<input type=\"text\" name=\"$_\" value=\"$item\"$tmp>";
 
38
    }
 
39
+   unless($allColumns) {
 
40
+      print "<td colspan=\"2\" bgcolor=\"#f1f1f1\"></td>";
 
41
+       
 
42
+   }
 
43
    print "</td></tr>\n";
 
44
 }
 
45
 print <<EOF;
 
46
@@ -173,7 +179,7 @@
 
47
 EOF
 
48
 }
 
49
 print <<EOF;
 
50
-</td><td align="right" bgcolor="#d9d9d9">
 
51
+</td><td colspan="3" align="right" bgcolor="#d9d9d9">
 
52
 <input type="submit" value="Login" style="background-color: #d9d9d9">
 
53
 </td></tr></table></form>
 
54