Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
09ebeb87
Commit
09ebeb87
authored
Nov 20, 2015
by
David Read
Browse files
Hide comments meant as unseen
parent
6492a666
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/helpers.py
View file @
09ebeb87
...
...
@@ -9,7 +9,7 @@ def archiver_resource_show(resource_id):
def
archiver_is_resource_broken_html
(
resource
):
archival
=
resource
.
get
(
'archiver'
)
if
not
archival
:
return
'<!-- No archival info for this resource -->'
return
tk
.
literal
(
'<!-- No archival info for this resource -->'
)
extra_vars
=
{
'resource'
:
resource
}
extra_vars
.
update
(
archival
)
return
tk
.
literal
(
...
...
@@ -20,7 +20,7 @@ def archiver_is_resource_broken_html(resource):
def
archiver_is_resource_cached_html
(
resource
):
archival
=
resource
.
get
(
'archiver'
)
if
not
archival
:
return
'<!-- No archival info for this resource -->'
return
tk
.
literal
(
'<!-- No archival info for this resource -->'
)
extra_vars
=
{
'resource'
:
resource
}
extra_vars
.
update
(
archival
)
return
tk
.
literal
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment