Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baas
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
baas
Commits
d69bd737
Commit
d69bd737
authored
Nov 20, 2015
by
Efthymia Bika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shorten filename when too long
Display '...' instead. Show full filename on hover
parent
c988279e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
baas/timeview.js
baas/timeview.js
+6
-1
No files found.
baas/timeview.js
View file @
d69bd737
...
...
@@ -36,14 +36,19 @@ function show_contents_by_date(error, stdout, stderr) {
$
.
each
(
contents
,
function
(
i
,
el
)
{
var
f
=
"
open_folder('
"
+
el
.
name
+
"
')
"
;
var
restore_f
=
"
show_rest_icon('
"
+
i
+
"
')
"
;
var
title
=
(
el
.
name
.
length
>
30
)
?
el
.
name
:
""
;
var
el_link
=
$
(
"
<a></a>
"
)
.
attr
(
"
href
"
,
"
#
"
)
.
attr
(
"
title
"
,
title
)
.
attr
(
"
onclick
"
,
restore_f
);
if
(
el
.
type
==
'
dir
'
)
{
el_link
.
attr
(
"
ondblclick
"
,
f
);
}
var
locale_date
=
new
Date
(
el
.
timestamp
).
toLocaleString
();
var
li
=
$
(
"
<li> <span>
"
+
el
.
name
+
"
</span><span class='right'>
"
var
filename
=
(
el
.
name
.
length
>
30
)
?
el
.
name
.
substring
(
0
,
7
)
+
"
...
"
+
el
.
name
.
substring
(
el
.
name
.
length
-
7
,
el
.
name
.
length
):
el
.
name
;
var
li
=
$
(
"
<li> <span>
"
+
filename
+
"
</span><span class='right'>
"
+
locale_date
+
"
</span></li>
"
)
.
attr
(
"
id
"
,
el
.
name
);
var
icon_class
=
(
el
.
type
==
'
dir
'
)
...
...
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