root | 6 May 17:56 2008

[mb-commits] r9828 - mb_server/branches

Author: luks
Date: 2008-05-06 15:56:53 +0000 (Tue, 06 May 2008)
New Revision: 9828

Added:
   mb_server/branches/newbie-voting/
Log:
...

Copied: mb_server/branches/newbie-voting (from rev 9827, mb_server/trunk)
root | 6 May 18:02 2008

[mb-commits] r9829 - in mb_server/branches/newbie-voting: cgi-bin htdocs/comp

Author: luks
Date: 2008-05-06 16:02:15 +0000 (Tue, 06 May 2008)
New Revision: 9829

Modified:
   mb_server/branches/newbie-voting/cgi-bin/UserStuff.pm
   mb_server/branches/newbie-voting/htdocs/comp/entermods
   mb_server/branches/newbie-voting/htdocs/comp/relmods
   mb_server/branches/newbie-voting/htdocs/comp/showmod
   mb_server/branches/newbie-voting/htdocs/comp/showmoddetail
Log:
Don't allow users with less than 10 accepted (non-auto)edits to vote.

Modified: mb_server/branches/newbie-voting/cgi-bin/UserStuff.pm
===================================================================
--- mb_server/branches/newbie-voting/cgi-bin/UserStuff.pm	2008-05-06 15:56:53 UTC (rev 9828)
+++ mb_server/branches/newbie-voting/cgi-bin/UserStuff.pm	2008-05-06 16:02:15 UTC (rev 9829)
 <at>  <at>  -711,6 +711,15  <at>  <at> 
 	return ($privs & MBID_SUBMITTER_FLAG) > 0;
 }

+# User can vote if they have at least 10 accepted edits and a confirmed
+# e-mail address.
+sub CanVote
+{
+	my $session = GetSession();
+
+	return ($session->{has_confirmed_email} > 0) && ($session->{editsaccepted} > 10);
+}
+
(Continue reading)

root | 9 May 08:41 2008

[mb-commits] r9830 - mb_server/trunk/htdocs/scripts

Author: luks
Date: 2008-05-09 06:41:54 +0000 (Fri, 09 May 2008)
New Revision: 9830

Modified:
   mb_server/trunk/htdocs/scripts/editallconfig.js
Log:
Use full year as an example when adding a new release. (closes #3688, patch by mikemorr)

Modified: mb_server/trunk/htdocs/scripts/editallconfig.js
===================================================================
--- mb_server/trunk/htdocs/scripts/editallconfig.js	2008-05-06 16:02:15 UTC (rev 9829)
+++ mb_server/trunk/htdocs/scripts/editallconfig.js	2008-05-09 06:41:54 UTC (rev 9830)
 <at>  <at>  -314,7 +314,7  <at>  <at> 
 				if (el.disabled) {
 					el.title = "Release event is selected for removal";
 				} else {
-					el.title = "Enter the year here. This value is required if you enter the month and day (e.g. " + new
Date().getYear() + ")";
+					el.title = "Enter the year here. This value is required if you enter the month and day (e.g. " + new
Date().getFullYear() + ")";
 				}

 			} else if (name.match(/month-/i)) {
root | 9 May 08:42 2008

[mb-commits] r9831 - in mb_server/trunk/htdocs: comp/release_editor edit/albumreleases

Author: luks
Date: 2008-05-09 06:42:54 +0000 (Fri, 09 May 2008)
New Revision: 9831

Modified:
   mb_server/trunk/htdocs/comp/release_editor/form-releases
   mb_server/trunk/htdocs/edit/albumreleases/editreleases.html
Log:
Wrong abbreviation titles: "Year Day Day" should be "Year Month Day". (closes #3689, patch by mikemorr)

Modified: mb_server/trunk/htdocs/comp/release_editor/form-releases
===================================================================
--- mb_server/trunk/htdocs/comp/release_editor/form-releases	2008-05-09 06:41:54 UTC (rev 9830)
+++ mb_server/trunk/htdocs/comp/release_editor/form-releases	2008-05-09 06:42:54 UTC (rev 9831)
 <at>  <at>  -73,7 +73,7  <at>  <at> 
 					<table class="formstyle" border="0" cellspacing="0" cellpadding="0">
 					<tr>
 						<td colspan="2"></td>
-						<td><strong>Date (<abbr title="Year">Y</abbr>/<abbr title="Day">M</abbr>/<abbr title="Day">D</abbr>):</strong></td>
+						<td><strong>Date (<abbr title="Year">Y</abbr>/<abbr title="Month">M</abbr>/<abbr title="Day">D</abbr>):</strong></td>
 						<td><strong>Country:</strong></td>
 						<td colspan="2"><strong>Label:</strong></td>
 						<td><strong>Catalog #:</strong></td>

Modified: mb_server/trunk/htdocs/edit/albumreleases/editreleases.html
===================================================================
--- mb_server/trunk/htdocs/edit/albumreleases/editreleases.html	2008-05-09 06:41:54 UTC (rev 9830)
+++ mb_server/trunk/htdocs/edit/albumreleases/editreleases.html	2008-05-09 06:42:54 UTC (rev 9831)
 <at>  <at>  -283,7 +283,7  <at>  <at> 
 				<td colspan="2" style="padding-top: 20px;">
(Continue reading)

root | 12 May 21:51 2008

[mb-commits] r9832 - mb_server/branches

Author: acid2
Date: 2008-05-12 19:51:10 +0000 (Mon, 12 May 2008)
New Revision: 9832

Added:
   mb_server/branches/TemplateToolkit/
Log:
Creating a branch for my Template Toolkit work over the summer

Copied: mb_server/branches/TemplateToolkit (from rev 9831, mb_server/trunk)
root | 13 May 00:05 2008

[mb-commits] r9833 - in mb_server/branches/TemplateToolkit: . catalyst catalyst/lib catalyst/lib/musicbrainz catalyst/lib/musicbrainz/Controller catalyst/lib/musicbrainz/View catalyst/root catalyst/root/components catalyst/root/layout catalyst/root/layout/sidebar catalyst/root/main catalyst/root/static catalyst/root/static/images catalyst/root/static/images/icon catalyst/root/static/images/sponsors catalyst/script catalyst/t

Author: acid2
Date: 2008-05-12 22:05:32 +0000 (Mon, 12 May 2008)
New Revision: 9833

Added:
   mb_server/branches/TemplateToolkit/catalyst/
   mb_server/branches/TemplateToolkit/catalyst/Changes
   mb_server/branches/TemplateToolkit/catalyst/Makefile.PL
   mb_server/branches/TemplateToolkit/catalyst/README
   mb_server/branches/TemplateToolkit/catalyst/lib/
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz.pm
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Main.pm
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Model/
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/View/
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/View/Main.pm
   mb_server/branches/TemplateToolkit/catalyst/musicbrainz.yml
   mb_server/branches/TemplateToolkit/catalyst/root/
   mb_server/branches/TemplateToolkit/catalyst/root/components/
   mb_server/branches/TemplateToolkit/catalyst/root/components/box.tt
   mb_server/branches/TemplateToolkit/catalyst/root/components/doc-link.tt
   mb_server/branches/TemplateToolkit/catalyst/root/components/entity-link.tt
   mb_server/branches/TemplateToolkit/catalyst/root/favicon.ico
   mb_server/branches/TemplateToolkit/catalyst/root/layout.tt
   mb_server/branches/TemplateToolkit/catalyst/root/layout/
   mb_server/branches/TemplateToolkit/catalyst/root/layout/footer-bar.tt
   mb_server/branches/TemplateToolkit/catalyst/root/layout/header.tt
   mb_server/branches/TemplateToolkit/catalyst/root/layout/sidebar.tt
(Continue reading)

root | 13 May 01:41 2008

[mb-commits] r9834 - in mb_server/branches/TemplateToolkit/catalyst: lib/musicbrainz/Controller root/layout root/static

Author: acid2
Date: 2008-05-12 23:41:43 +0000 (Mon, 12 May 2008)
New Revision: 9834

Modified:
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm
   mb_server/branches/TemplateToolkit/catalyst/root/layout/footer-bar.tt
   mb_server/branches/TemplateToolkit/catalyst/root/static/main.css
Log:
Support the footer bar. Also first bit of Perl that is using 'use lib' to specify the location of cgi-bin.
Please let me know if there is a better way (will discuss on irc)

Modified: mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm
===================================================================
---
mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm	2008-05-12
22:05:32 UTC (rev 9833)
+++
mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm	2008-05-12
23:41:43 UTC (rev 9834)
 <at>  <at>  -4,6 +4,11  <at>  <at> 
 use warnings;
 use parent 'Catalyst::Controller';

+# We need this to specify the MusicBrainz perl codebase
+use lib "/home/musicbrainz/blah/TemplateToolkit/cgi-bin";
+
+use DBDefs;
+
 #
(Continue reading)

root | 13 May 12:14 2008

[mb-commits] r9835 - in mb_server/branches/TemplateToolkit/catalyst: lib/musicbrainz/Controller root/main

Author: acid2
Date: 2008-05-13 10:14:58 +0000 (Tue, 13 May 2008)
New Revision: 9835

Modified:
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm
   mb_server/branches/TemplateToolkit/catalyst/root/main/index.tt
Log:
Added support for the blog on the landing page, and moved away from using the Main.pm controller (didn't
understand the purpores of the Root controller when I started)

Modified: mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm
===================================================================
---
mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm	2008-05-12
23:41:43 UTC (rev 9834)
+++
mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm	2008-05-13
10:14:58 UTC (rev 9835)
 <at>  <at>  -7,6 +7,7  <at>  <at> 
 # We need this to specify the MusicBrainz perl codebase
 use lib "/home/musicbrainz/blah/TemplateToolkit/cgi-bin";

+# Import MusicBrainz libraries
 use DBDefs;

 #
 <at>  <at>  -16,59 +17,85  <at>  <at> 
 __PACKAGE__->config->{namespace} = '';

(Continue reading)

root | 13 May 12:37 2008

[mb-commits] r9836 - in mb_server/branches/TemplateToolkit/catalyst/root: . main static static/images static/styles static/styles/extra

Author: acid2
Date: 2008-05-13 10:37:48 +0000 (Tue, 13 May 2008)
New Revision: 9836

Added:
   mb_server/branches/TemplateToolkit/catalyst/root/static/images/header-bg-lightpurplefade.gif
   mb_server/branches/TemplateToolkit/catalyst/root/static/images/header-bg-orangefade.gif
   mb_server/branches/TemplateToolkit/catalyst/root/static/styles/
   mb_server/branches/TemplateToolkit/catalyst/root/static/styles/extra/
   mb_server/branches/TemplateToolkit/catalyst/root/static/styles/extra/index.css
Modified:
   mb_server/branches/TemplateToolkit/catalyst/root/layout.tt
   mb_server/branches/TemplateToolkit/catalyst/root/main/index.tt
   mb_server/branches/TemplateToolkit/catalyst/root/static/main.css
Log:
Cosmetic changes to better reflect the current MB landing page

Modified: mb_server/branches/TemplateToolkit/catalyst/root/layout.tt
===================================================================
--- mb_server/branches/TemplateToolkit/catalyst/root/layout.tt	2008-05-13 10:14:58 UTC (rev 9835)
+++ mb_server/branches/TemplateToolkit/catalyst/root/layout.tt	2008-05-13 10:37:48 UTC (rev 9836)
 <at>  <at>  -1,7 +1,3  <at>  <at> 
-[%- DEFAULT
-    title = "MusicBrainz"
--%]
-
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
 	  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

 <at>  <at>  -10,10 +6,14  <at>  <at> 
(Continue reading)

root | 13 May 17:58 2008

[mb-commits] r9837 - in mb_server/branches/TemplateToolkit/catalyst: lib lib/musicbrainz/Controller root root/user t

Author: acid2
Date: 2008-05-13 15:58:27 +0000 (Tue, 13 May 2008)
New Revision: 9837

Added:
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/User.pm
   mb_server/branches/TemplateToolkit/catalyst/root/user/
   mb_server/branches/TemplateToolkit/catalyst/root/user/login.tt
   mb_server/branches/TemplateToolkit/catalyst/root/user/profile.tt
   mb_server/branches/TemplateToolkit/catalyst/t/controller_User.t
Modified:
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz.pm
   mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm
Log:
Very basics of user management

Modified: mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm
===================================================================
---
mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm	2008-05-13
10:37:48 UTC (rev 9836)
+++
mb_server/branches/TemplateToolkit/catalyst/lib/musicbrainz/Controller/Root.pm	2008-05-13
15:58:27 UTC (rev 9837)
 <at>  <at>  -81,13 +81,15  <at>  <at> 

 =head2 end
 Attempt to render a view, if needed. This will also set up some global variables in the 
-context containing important information about the server used on the majority of templates.
+context containing important information about the server used on the majority of templates,
(Continue reading)


Gmane