This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index bb97d10..c5f53bd 100644 | |
--- a/root/layout.tt | |
+++ b/root/layout.tt | |
@@ -1,30 +1,28 @@ | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index c5f53bd..bb97d10 100644 | |
--- a/root/layout.tt | |
+++ b/root/layout.tt | |
@@ -1,28 +1,30 @@ | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi again, | |
I want to resurrect this again, with some slightly more concrete | |
thoughts on these changes, as I feel these are becoming more and | |
more important as we start to consider NGS. First, changes to the | |
work I've done myself: | |
-- | |
There is a strange dependancy (that I somehow thought was a good |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[%- WRAPPER "forms/form.tt" action=c.uri_for('/search') method="get" -%] | |
[% INCLUDE "forms/input.tt" field=forms.sidebar.search.type type='select' -%] | |
[% INCLUDE "forms/input.tt" field=forms.sidebar.search.query type='text' -%] | |
[% INCLUDE "forms/submit.tt" label="Search" %] | |
[% INCLUDE "forms/input.tt" field=forms.sidebar.search.enable_advanced type='checkbox' -%] | |
[% INCLUDE "forms/label.tt" for=forms.sidebar.search.enable_advanced | |
label=doc_link('TextSearchSyntax', 'Advanced Query') %] | |
[% END %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in the po: | |
edit_notes: You need to add a $1 | |
in the template: | |
[% translate('edit_notes', doc_link('EditNote', translate('edit note'))) %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Data::UUID; | |
use Test::More tests => 11; | |
use Test::Exception; | |
BEGIN { use_ok('MusicBrainz::Schema'); } | |
my $schema = MusicBrainz::Schema->connect('DBI:Pg:dbname=musicbrainz_db_test', 'musicbrainz_user'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Test; | |
use Moose; | |
sub foo { | |
print 'doing foo'; | |
} | |
package MoreTest; | |
use Moose; | |
extends 'Test'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub by_artist { | |
my ($self, $artist) = @_; | |
$self->search( | |
{ 'names.artist' => $artist->id }, | |
{ | |
join => [ | |
{ artist => 'names' }, | |
'name' | |
], | |
'+select' => [ 'name.name' ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following executes only 1 SQL statement, and prints the names of all the releases (in my test data example - 2) | |
# that Massive Attack had artist credit for. | |
# SELECT me.id, me.name, me.gid, me.modpending, me.quality, me.modpending_qual, me.modpending_lang, me.artist, me.attributes, me.language, me.script, | |
# name.id, name.page, name.name, name.refcount FROM album me JOIN artist_credit artist ON ( artist.id = me.artist ) LEFT JOIN artist_credit_name | |
# names ON ( names.artist_credit = artist.id ) JOIN release_name name ON ( name.id = me.name ) WHERE ( names.artist = ? ): '1101' | |
for ($schema->resultset('Release')->by_artist($massive_attack)) { | |
diag("\t Release: " . $_->name->name); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create label elements. Supports custom classes | |
[%- INCLUDE 'forms/label.tt' for=form.field('Whatever') class="sparkly" -%] | |
[%- INCLUDE 'forms/label.tt' for="Your own string" class="standard html class spec" -%] | |
-- Display just an <input>, <select>, etc | |
-- You can specify a type on input.tt, even if you use for=form.field('...') | |
[%- INCLUDE 'forms/input.tt' for=form.field('Whatever') class="sparkly" -%] | |
[%- INCLUDE 'forms/label.tt' for="id-of-object" type="Whatever" class="more classes" -%] | |
-- Create a row with a label on the left, and a field on the right. |
OlderNewer