Merge pull request #81 from Pear-Trading/finn/linkcorrections

added link corrections
This commit is contained in:
Finn 2017-12-08 11:27:44 +00:00 committed by GitHub
commit 0b6d823145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -139,7 +139,7 @@ sub valid_edit {
$c->flash( success => 'Updated Organisation' );
}
};
$c->redirect_to( '/admin/organisations/');
$c->redirect_to( '/admin/organisations/' . $c->param('id') );
}
sub merge_list {

View file

@ -16,11 +16,11 @@
<div class="card">
<h3 class="card-header">
Organisations
<a href="<%= url_for . '/add' %>" class="btn btn-success" style="float: right">Add Organisation</a>
<a href="<%= url_for . '/add' %>" class="btn btn-success" style="float: right" target="_blank">Add Organisation</a>
</h3>
<div class="list-group list-group-flush">
% for my $org_result ($orgs_rs->all) {
<a href="<%= url_for . '/' . $org_result->id %>" class="list-group-item list-group-item-action d-flex justify-content-between">
<a href="<%= url_for . '/' . $org_result->id %>" class="list-group-item list-group-item-action d-flex justify-content-between" target="_blank">
<div>
%= $org_result->name
</div>

View file

@ -148,7 +148,7 @@ function initMap() {
</h3>
<div class="list-group list-group-flush">
% for my $transaction ( $transactions->all ) {
<a href="<%= url_for '/admin/transactions/' . $transaction->id %>" class="list-group-item list-group-item-action">
<a href="<%= url_for '/admin/transactions/' . $transaction->id %>" class="list-group-item list-group-item-action" target="_blank">
<div class="row text-center">
<div class="col">From: <%= $transaction->buyer->name %></div>
<div class="col">To: <%= $transaction->seller->name %></div>

View file

@ -19,7 +19,7 @@
</h3>
<div class="list-group list-group-flush">
% for my $transaction ( $transactions->all ) {
<a href="<%= url_for . '/' . $transaction->id %>" class="list-group-item list-group-item-action">
<a href="<%= url_for . '/' . $transaction->id %>" class="list-group-item list-group-item-action" target="_blank">
<div class="row">
<div class="col-md-4 row">
<div class="col my-auto">

View file

@ -13,7 +13,7 @@
% }
<div class="list-group">
% for my $user ($user_rs->all) {
<a href="<%= url_for . '/' . $user->id %>" class="list-group-item list-group-item-action">
<a href="<%= url_for . '/' . $user->id %>" class="list-group-item list-group-item-action" target="_blank">
<div class="row">
<div class="col-4">
%= $user->name