my $couchdb = $ENV{COUCHDB} || 'http://localhost:5984';
+my $couchdb_view = 'http://10.60.0.92:5984/_utils/document.html?drzb2013v2/';
my $client = Mojo::UserAgent->new;
sub _couchdb_put {
get '/lang/:lang/partials/:template' => sub {
my $self = shift;
+ $self->stash( couchdb_view => $couchdb_view );
$self->render( 'partials/' . $self->stash('template') , lang => $self->stash('lang') );
};
{{registration.user.registration_type}}
<tt>{{registration._id}}</tt>
{{registration._id | registration_timestamp}}
+% if ( $lang =~ m/-dev/ ) {
+ <a href="<%= $couchdb_view %>{{registration._id}}" target="couchdb">couchdb</a>
+% }
<p>
{{registration.user.firstname}}