Skip to content

Commit e63c072

Browse files
author
Brian Duggan
committed
display URLs for figures, findings, tables
1 parent 7731f38 commit e63c072

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

lib/Tuba/files/templates/figure/object.html.ep

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
% } else {
4242
<p>This figure appears in the <%= obj_link($figure->report) %> report.</p>
4343
% }
44+
% if (my $to = fix_url($figure->url)) {
45+
<p><%= link_to $to => target => "_blank" => begin %><%= $figure->url %><%= end %></p>
46+
% }
4447

4548
<p><%= tbibs_to_links($figure->caption) %></p>
4649
% if ($figure->source_citation){

lib/Tuba/files/templates/finding/object.html.ep

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<p>This finding is from <%= obj_link_to $finding->report, 'show' => begin %>
3939
<%= $finding->report->title %><%= end %>.</p>
4040
% }
41+
% if (my $to = fix_url($finding->url)) {
42+
<p><%= link_to $to => target => "_blank" => begin %><%= $finding->url %><%= end %></p>
43+
% }
4144
% for my $what (qw/process evidence uncertainties confidence/) {
4245
% if ($finding->$what) {
4346
<p><b><%= $labels{$what} %> :</b><%= tbibs_to_links($finding->$what) %></p>

lib/Tuba/files/templates/table/object.html.ep

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
% } else {
4444
<p>This table appears in the <%= obj_link($table->report) %> report.</p>
4545
% }
46+
% if (my $to = fix_url($table->url)) {
47+
<p><%= link_to $to => target => "_blank" => begin %><%= $table->url %><%= end %></p>
48+
% }
4649
<p><%= tbibs_to_links($table->caption) %></p>
4750

4851
% if (my @arrays = sorted_list($table,'arrays')) {

0 commit comments

Comments
 (0)