Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
19433011
Commit
19433011
authored
Feb 14, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_project_ui: front page and project home page styles
parent
c250a0a6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
16 deletions
+36
-16
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_front_page_info.html.html
...l_skins/erp5_web_project/gadget_front_page_info.html.html
+1
-1
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.css.css
...portal_skins/erp5_web_project/gadget_project_info.css.css
+31
-13
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.js
...m/portal_skins/erp5_web_project/gadget_project_info.js.js
+4
-2
No files found.
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_front_page_info.html.html
View file @
19433011
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</div>
</div>
</div>
</div>
<div>
<div>
<div
class=
"project-line"
><a
link
=
"erp5.com"
>
Project Forum
</a></div>
<div
class=
"project-line"
><a
href
=
"erp5.com"
>
Project Forum
</a></div>
<div
class=
"project-line"
>
more info...
</div>
<div
class=
"project-line"
>
more info...
</div>
<div
class=
"project-line"
>
more info...
</div>
<div
class=
"project-line"
>
more info...
</div>
<div
class=
"project-line"
>
more info...
</div>
<div
class=
"project-line"
>
more info...
</div>
...
...
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.css.css
View file @
19433011
...
@@ -14,6 +14,11 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project
...
@@ -14,6 +14,11 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project
padding-left
:
15px
;
padding-left
:
15px
;
}
}
div
[
data-gadget-url
$
=
"gadget_front_page_info.html"
]
a
{
color
:
#267B87
;
text-decoration
:
none
;
}
div
[
data-gadget-url
$
=
"gadget_front_page_info.html"
]
.front-project-list
.project-box
.project-info
{
div
[
data-gadget-url
$
=
"gadget_front_page_info.html"
]
.front-project-list
.project-box
.project-info
{
display
:
inline-flex
;
display
:
inline-flex
;
}
}
...
@@ -57,6 +62,8 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project
...
@@ -57,6 +62,8 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project
}
}
/* PROJECT PAGE */
.gadget-content
.ui-field-contain
.bottom
.first-line-buttons
{
.gadget-content
.ui-field-contain
.bottom
.first-line-buttons
{
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
margin-top
:
0
;
margin-top
:
0
;
...
@@ -138,24 +145,35 @@ input[type="submit"] {
...
@@ -138,24 +145,35 @@ input[type="submit"] {
}
}
/* PROJECT HOME PAGE */
/* for future graphs*/
body
.cke_editable
h1
{
margin-top
:
1.5em
;
font-family
:
"Roboto"
,
Arial
,
sans-serif
;
color
:
#19535F
;
font-size
:
2em
;
margin
:
0.67em
0
;
}
#wrap1
iframe
{
body
.cke_editable
h2
{
height
:
100%
;
font-family
:
"Roboto"
,
Arial
,
sans-serif
;
font-weight
:
normal
;
font-size
:
25px
;
line-height
:
33px
;
color
:
#19535F
;
}
}
#wrap2
iframe
{
body
.cke_editable
p
,
body
.cke_editable
li
,
body
.cke_editable
span
{
height
:
100%
;
font-family
:
'Heuristica'
,
'Helvetica'
,
Times
,
serif
;
}
}
.gadget-content
.ui-field-contain
.graph-spinner
{
body
.cke_editable
ul
li
,
body
.cke_editable
p
{
position
:
relative
;
font-size
:
1.25em
;
top
:
100px
;
line-height
:
1.58em
;
width
:
120px
;
letter-spacing
:
-.003em
;
}
}
.gadget-content
.ui-field-contain
.count-spinner
{
body
.cke_editable
a
{
top
:
20px
;
color
:
#267B87
;
width
:
120px
;
text-decoration
:
none
;
}
}
\ No newline at end of file
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.js
View file @
19433011
...
@@ -14,13 +14,15 @@
...
@@ -14,13 +14,15 @@
function
parseHTMLLinks
(
html
,
url
)
{
function
parseHTMLLinks
(
html
,
url
)
{
var
parser
=
new
DOMParser
(),
i
,
var
parser
=
new
DOMParser
(),
i
,
//TODO create head and link html elements and prepend to doc instead of using text
styles_header
=
'
<head><link rel="stylesheet" type="text/css" href="gadget_project_info.css"></head>
'
,
oSerializer
=
new
XMLSerializer
(),
oSerializer
=
new
XMLSerializer
(),
doc
=
parser
.
parseFromString
(
html
,
"
text/html
"
),
doc
=
parser
.
parseFromString
(
html
,
"
text/html
"
),
link_list
=
doc
.
getElementsByTagName
(
"
a
"
);
link_list
=
doc
.
getElementsByTagName
(
"
a
"
);
for
(
i
=
0
;
i
<
link_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
link_list
.
length
;
i
+=
1
)
{
link_list
[
i
].
setAttribute
(
'
href
'
,
addRedirectionToReference
(
link_list
[
i
].
getAttribute
(
'
href
'
),
url
));
link_list
[
i
].
setAttribute
(
'
href
'
,
addRedirectionToReference
(
link_list
[
i
].
getAttribute
(
'
href
'
),
url
));
}
}
return
oSerializer
.
serializeToString
(
doc
);
return
styles_header
+
oSerializer
.
serializeToString
(
doc
);
}
}
function
enableLink
(
link_element
,
url
)
{
function
enableLink
(
link_element
,
url
)
{
...
@@ -220,7 +222,7 @@
...
@@ -220,7 +222,7 @@
gadget
.
getSetting
(
"
hateoas_url
"
)
gadget
.
getSetting
(
"
hateoas_url
"
)
];
];
if
(
modification_dict
.
publication_section
)
{
if
(
modification_dict
.
publication_section
)
{
promise_list
.
push
(
gadget
.
getDeclaredGadget
(
"
editor
"
))
,
promise_list
.
push
(
gadget
.
getDeclaredGadget
(
"
editor
"
))
;
promise_list
.
push
(
getWebPageInfo
(
gadget
,
modification_dict
.
jio_key
,
modification_dict
.
publication_section
));
promise_list
.
push
(
getWebPageInfo
(
gadget
,
modification_dict
.
jio_key
,
modification_dict
.
publication_section
));
}
}
return
RSVP
.
all
(
promise_list
);
return
RSVP
.
all
(
promise_list
);
...
...
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