Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Francois Dockes
recoll-webui
Commits
82dad9d4
Commit
82dad9d4
authored
Oct 07, 2013
by
koniu
Browse files
py, tpl: rename "open/dl" link to "dl" to avoid confusion
parent
ea2dc0fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
views/result.tpl
View file @
82dad9d4
...
...
@@ -24,7 +24,7 @@
%if hasrclextract:
<div
class=
"search-result-links"
>
<a
href=
"/preview/{
{
number
-
1
}
}?{
{
query_string
}
}"
target=
"_blank"
>
Preview
</a>
<a
href=
"/
edit
/{
{
number
-
1
}
}?{
{
query_string
}
}"
>
Download
/Open
</a>
<a
href=
"/
download
/{
{
number
-
1
}
}?{
{
query_string
}
}"
>
Download
</a>
</div>
%end
<div
class=
"search-result-date"
>
{
{
d
[
'time'
]
}
}
</div>
...
...
webui.py
View file @
82dad9d4
...
...
@@ -281,8 +281,8 @@ def preview(resnum):
bottle
.
response
.
content_type
=
'text/plain; charset=utf-8'
return
tdoc
.
text
#}}}
#{{{
edit
@
bottle
.
route
(
'/
edit
/<resnum:int>'
)
#{{{
download
@
bottle
.
route
(
'/
download
/<resnum:int>'
)
def
edit
(
resnum
):
if
not
hasrclextract
:
return
'Sorry, needs recoll version 1.19 or later'
...
...
Write
Preview
Supports
Markdown
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