Update of /cvsroot/ngetsuite/ngetsuite/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv364/web Modified Files: group.rhtml grouphome.rhtml index.rhtml ngetsuite.css queueview.rhtml release.rhtml search.rhtml top.rhtml Log Message: - subdir fix - sexy headers in web interface's pages Index: grouphome.rhtml =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/grouphome.rhtml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** grouphome.rhtml 27 Sep 2004 18:01:27 -0000 1.2 --- grouphome.rhtml 29 Sep 2004 16:07:44 -0000 1.3 *************** *** 37,41 **** <body> ! <div class="sectiontitle"><%= web.group._fullname %></div> <p>Added <b><%= web.group._date_added %></b></p> <p>Last updated <b><%= web.group._date_updated %></b></p> --- 37,41 ---- <body> ! <div class="pagetitle"><%= web.group._fullname %></div> <p>Added <b><%= web.group._date_added %></b></p> <p>Last updated <b><%= web.group._date_updated %></b></p> Index: release.rhtml =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/release.rhtml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** release.rhtml 27 Sep 2004 14:59:41 -0000 1.5 --- release.rhtml 29 Sep 2004 16:07:44 -0000 1.6 *************** *** 24,28 **** artq = "select * from `articles` a left join `nfos` n using (`artindex`) " artq += "where a.groupindex='#{groupindex}' and `rlsartindex`='#{artindex}' " ! artq += "and DATE_FORMAT(`time`, '%Y-%m-%d')='#{date}' " if date != "any" artq += "order by `subject`" else --- 24,28 ---- artq = "select * from `articles` a left join `nfos` n using (`artindex`) " artq += "where a.groupindex='#{groupindex}' and `rlsartindex`='#{artindex}' " ! # artq += "and DATE_FORMAT(`time`, '%Y-%m-%d')='#{date}' " if date != "any" artq += "order by `subject`" else *************** *** 67,83 **** %> <a name="top"></a> - <h1>Release details</h1> - - <ul> - <% if !rls.nfos.empty? %> - <li><a href="#nfos"><%= rls.nfos.size %> viewable text file(s)</a></li> - <% end %> - <li><a href="#artlist">View articles list</a></li> - <li><a href="#actions">Search/queue</a></li> - </ul> ! <a name="nfos"></a> ! <% rls.nfos.each { |nfo| %> <div class="group">Contents of: <i><%= nfo[1] %></i></div> <pre> --- 67,91 ---- %> <a name="top"></a> + <div class="pagetitle">Release details: + <% + if !rls.nfos.empty? + 1.upto(rls.nfos.size) { |i| + %> + <a class="titlelink" href="#nfo<%=i%>">NFO<%=i%></a> | + <% + } + end + %> + <a class="titlelink" href="#artlist">articles</a><!-- | + <a class="titlelink" href="#actions">actions</a> --> + </div> ! <% ! idnfo = 0 ! rls.nfos.each { |nfo| ! idnfo += 1 ! %> ! <a name="nfo<%=idnfo%>"></a> <div class="group">Contents of: <i><%= nfo[1] %></i></div> <pre> *************** *** 90,95 **** <% else %> ! <h1>Orphan files</h1> ! <%= "<h2>posted on #{web.date_str}</h2>" if web.date %> <% end %> --- 98,103 ---- <% else %> ! ! <div class="pagetitle">Orphans - <%= "#{web.date_str}" if web.date %></div> <% end %> Index: queueview.rhtml =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/queueview.rhtml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** queueview.rhtml 27 Sep 2004 14:59:40 -0000 1.5 --- queueview.rhtml 29 Sep 2004 16:07:44 -0000 1.6 *************** *** 31,34 **** --- 31,36 ---- <body> + <div class="pagetitle">Queue view</div> + <% if web.group %> <div class="add_queue"> Index: top.rhtml =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/top.rhtml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** top.rhtml 27 Sep 2004 18:01:27 -0000 1.5 --- top.rhtml 29 Sep 2004 16:07:44 -0000 1.6 *************** *** 57,61 **** <table> <tr> ! <td class="grouptab"><a href="index.rhtml" target="_top">*</a></td> <% NgetSuite::GroupList.new("order by `shortname`").each { |group| %> <td class="<%= (servlet_request.query["group"] == group._fullname) ? "grouptabsel" : "grouptab" %>"><a href="index.rhtml?group=<%= group._fullname %>" target="_top"><%= group._shortname %></a></td> --- 57,61 ---- <table> <tr> ! <td class="ngetsuitebutton"><a class="ngetsuitelink" href="index.rhtml" target="_top"><b>nget</b><i>suite</i></a></td> <% NgetSuite::GroupList.new("order by `shortname`").each { |group| %> <td class="<%= (servlet_request.query["group"] == group._fullname) ? "grouptabsel" : "grouptab" %>"><a href="index.rhtml?group=<%= group._fullname %>" target="_top"><%= group._shortname %></a></td> Index: index.rhtml =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/index.rhtml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.rhtml 27 Sep 2004 18:01:27 -0000 1.6 --- index.rhtml 29 Sep 2004 16:07:44 -0000 1.7 *************** *** 23,27 **** <title>NgetSuite: CFUJ Downloader Edition</title> </head> ! <frameset rows="60,*" cols="*" border="1" frameborder="1" framespacing="0" resize="no"> <frame src="<%= url_top %>" name="top" frameborder="0" scrolling="no" /> <frameset cols="50%, 50%" framespacing="1" frameborder="1" border="1"> --- 23,27 ---- <title>NgetSuite: CFUJ Downloader Edition</title> </head> ! <frameset rows="59,*" cols="*" border="1" frameborder="1" framespacing="0" resize="no"> <frame src="<%= url_top %>" name="top" frameborder="0" scrolling="no" /> <frameset cols="50%, 50%" framespacing="1" frameborder="1" border="1"> Index: ngetsuite.css =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/ngetsuite.css,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ngetsuite.css 21 Feb 2004 15:58:34 -0000 1.12 --- ngetsuite.css 29 Sep 2004 16:07:44 -0000 1.13 *************** *** 13,16 **** --- 13,17 ---- font-size: 10pt; background: #dddddd; + margin-top: 3ex; } *************** *** 38,41 **** --- 39,62 ---- } + div.pagetitle { + color: white; + background-color: gray; + left: 0px; + top: 0px; + width: 100%; + font-family: Arial, Helvetica, sans-serif; + font-size: 10pt; + position: fixed; + margin-bottom: 10ex; + } + + a.titlelink { + color: #AAAAAA; + } + + a.titlelink:hover { + color: #BBBBBB; + } + table.banner { border: 1px solid black; *************** *** 48,51 **** --- 69,82 ---- } + td.ngetsuitebutton { + border: 1px solid black; + background-color: #8080FF; + } + + a.ngetsuitelink { + color: white; + text-decoration: none; + } + td.grouptab { border: 1px solid black; Index: group.rhtml =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/group.rhtml,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** group.rhtml 27 Sep 2004 18:01:26 -0000 1.9 --- group.rhtml 29 Sep 2004 16:07:44 -0000 1.10 *************** *** 67,71 **** ! <div class="sectiontitle"><%= web.date_str %></div> <% releases = Releases.new(web.group._groupindex, web.date) %> --- 67,71 ---- ! <div class="pagetitle">Releases - <%= web.date_str %></div> <% releases = Releases.new(web.group._groupindex, web.date) %> Index: search.rhtml =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/web/search.rhtml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** search.rhtml 27 Sep 2004 18:01:27 -0000 1.2 --- search.rhtml 29 Sep 2004 16:07:44 -0000 1.3 *************** *** 72,76 **** %> ! <h3>Search releases/articles</h3> <div class="search_form"> <form method='post' name='search' target="left"> --- 72,76 ---- %> ! <div class="pagetitle">Search releases/articles</div> <div class="search_form"> <form method='post' name='search' target="left"> *************** *** 107,111 **** if (web.want_release == "1") %> ! <h3>Search results</h3> <table class='articles'> <tr class='headers'> --- 107,111 ---- if (web.want_release == "1") %> ! <div class="pagetitle">Search results</div> <table class='articles'> <tr class='headers'> *************** *** 156,160 **** end end ! #<%= web.end_html() %> <% NgetSuite::Db.dbh.disconnect %> --- 156,161 ---- end end + %> ! <%= web.end_html() %> <% NgetSuite::Db.dbh.disconnect %> |