Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
10939727
Commit
10939727
authored
15 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Make urls in event.log data in event detail page be links.
parent
4aef21e6
No related branches found
Branches containing commit
Tags
gracedb-2.0.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/views.py
+2
-2
2 additions, 2 deletions
gracedb/views.py
with
2 additions
and
2 deletions
gracedb/views.py
+
2
−
2
View file @
10939727
...
@@ -5,7 +5,7 @@ from django.template import RequestContext
...
@@ -5,7 +5,7 @@ from django.template import RequestContext
from
django.core.urlresolvers
import
reverse
,
get_script_prefix
from
django.core.urlresolvers
import
reverse
,
get_script_prefix
from
django.shortcuts
import
render_to_response
from
django.shortcuts
import
render_to_response
from
django.contrib.sites.models
import
Site
from
django.contrib.sites.models
import
Site
from
django.utils.html
import
strip_tags
,
escape
from
django.utils.html
import
strip_tags
,
escape
,
urlize
from
django.utils.safestring
import
mark_safe
from
django.utils.safestring
import
mark_safe
from
django.views.generic.list_detail
import
object_detail
,
object_list
from
django.views.generic.list_detail
import
object_detail
,
object_list
...
@@ -567,7 +567,7 @@ def get_logfile(graceid):
...
@@ -567,7 +567,7 @@ def get_logfile(graceid):
try
:
try
:
lines
=
open
(
logfilename
,
"
r
"
).
readlines
()
lines
=
open
(
logfilename
,
"
r
"
).
readlines
()
contents
=
"
<br/>
"
.
join
([
escape
(
line
)
for
line
in
lines
])
contents
=
"
<br/>
"
.
join
([
escape
(
line
)
for
line
in
lines
])
contents
=
mark_safe
(
contents
)
contents
=
mark_safe
(
urlize
(
contents
)
)
except
Exception
,
e
:
except
Exception
,
e
:
contents
=
None
contents
=
None
return
contents
return
contents
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment