Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
9f3d70bb
Commit
9f3d70bb
authored
Oct 05, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Highlight document name when it can be renamed.
parent
ec2ee712
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
apps/common/main/lib/template/Header.template
apps/common/main/lib/template/Header.template
+1
-1
apps/common/main/lib/view/Header.js
apps/common/main/lib/view/Header.js
+3
-2
apps/common/main/resources/less/header.less
apps/common/main/resources/less/header.less
+10
-1
No files found.
apps/common/main/lib/template/Header.template
View file @
9f3d70bb
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
<div id="header-logo"></div>
<div id="header-logo"></div>
<div id="header-caption"><div><%= headerCaption %></div></div>
<div id="header-caption"><div><%= headerCaption %></div></div>
<div id="header-developer" class="hidden"><div><%= headerDeveloper %></div></div>
<div id="header-developer" class="hidden"><div><%= headerDeveloper %></div></div>
<div id="header-documentcaption"><
span><%= documentCaption %></span
></div>
<div id="header-documentcaption"><
div><%= documentCaption %></div
></div>
<div id="header-back" style="display: <%= canBack ? 'table-cell' : 'none' %>;"><div><%= textBack %></div></div>
<div id="header-back" style="display: <%= canBack ? 'table-cell' : 'none' %>;"><div><%= textBack %></div></div>
</div>
</div>
\ No newline at end of file
apps/common/main/lib/view/Header.js
View file @
9f3d70bb
...
@@ -166,7 +166,7 @@ define([
...
@@ -166,7 +166,7 @@ define([
if
(
!
value
)
if
(
!
value
)
value
=
''
;
value
=
''
;
var
dc
=
$
(
'
#header-documentcaption
span
'
);
var
dc
=
$
(
'
#header-documentcaption
div
'
);
if
(
dc
)
if
(
dc
)
dc
.
html
(
Common
.
Utils
.
String
.
htmlEncode
(
value
));
dc
.
html
(
Common
.
Utils
.
String
.
htmlEncode
(
value
));
...
@@ -228,7 +228,7 @@ define([
...
@@ -228,7 +228,7 @@ define([
},
},
setCanRename
:
function
(
rename
)
{
setCanRename
:
function
(
rename
)
{
var
dc
=
$
(
'
#header-documentcaption
span
'
);
var
dc
=
$
(
'
#header-documentcaption
div
'
);
if
(
rename
)
{
if
(
rename
)
{
var
me
=
this
;
var
me
=
this
;
dc
.
tooltip
({
title
:
me
.
txtRename
,
placement
:
'
cursor
'
});
dc
.
tooltip
({
title
:
me
.
txtRename
,
placement
:
'
cursor
'
});
...
@@ -252,6 +252,7 @@ define([
...
@@ -252,6 +252,7 @@ define([
dc
.
off
(
'
click
'
);
dc
.
off
(
'
click
'
);
}
}
dc
.
css
(
'
cursor
'
,
rename
?
'
pointer
'
:
'
default
'
);
dc
.
css
(
'
cursor
'
,
rename
?
'
pointer
'
:
'
default
'
);
dc
.
toggleClass
(
'
renamed
'
,
rename
);
},
},
textBack
:
'
Go to Documents
'
,
textBack
:
'
Go to Documents
'
,
...
...
apps/common/main/resources/less/header.less
View file @
9f3d70bb
...
@@ -80,8 +80,17 @@
...
@@ -80,8 +80,17 @@
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
background-color: @app-header-bg-color;
background-color: @app-header-bg-color;
padding: 0
15
px + @app-header-height / 3;
padding: 0
7
px + @app-header-height / 3;
cursor: default;
cursor: default;
div {
display: inline-block;
padding: 2px 8px;
&.renamed {
background-color: @app-header-bg-color-dark;
}
}
}
}
#header-back {
#header-back {
...
...
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