Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
2a6e1785
Commit
2a6e1785
authored
Feb 28, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
larger picture allowed in profile
parent
c5ce7ef7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
comex_user_shared.js
static/js/comex_user_shared.js
+3
-3
profile.html
templates/profile.html
+7
-1
No files found.
static/js/comex_user_shared.js
View file @
2a6e1785
...
...
@@ -636,8 +636,8 @@ var cmxClt = (function() {
}
cC
.
uform
.
checkShowPic
=
function
(
aForm
,
doHighlight
)
{
// TEMPORARY initial size already
2
00 kB, user has to do it himself
var
max_size
=
2048
00
// TEMPORARY initial size already
5
00 kB, user has to do it himself
var
max_size
=
5120
00
// TODO max source image size before resizing
// see libs or stackoverflow.com/a/24015367
...
...
@@ -658,7 +658,7 @@ var cmxClt = (function() {
if
(
theFile
.
size
>
max_size
)
{
// msg pb
picMsg
.
innerHTML
=
"The picture is too big (
2
00kB max)!"
picMsg
.
innerHTML
=
"The picture is too big (
5
00kB max)!"
picMsg
.
style
.
color
=
cmxClt
.
colorRed
}
else
{
...
...
templates/profile.html
View file @
2a6e1785
...
...
@@ -472,6 +472,12 @@
</div> -->
<h3
class=
"formcat"
>
Picture
</h3>
<p
class=
"mini-hero"
>
You can link a picture that's already on the web or upload a picture yourself.
</p>
<div
class=
"question"
>
<p
class=
"legend"
>
Link to a picture of yours...
</p>
<div
class=
"input-group"
>
...
...
@@ -483,7 +489,7 @@
</div>
<div
class=
"question"
style=
"margin-bottom:.5em"
>
<p
class=
"legend"
>
... or upload a picture (png, jpg or gif, max source size:
2
00kB)
</p>
<p
class=
"legend"
>
... or upload a picture (png, jpg or gif, max source size:
5
00kB)
</p>
<!-- <p class="legend">Upload a picture of yours (max source size: 4MB, then the image will be reduced to 200kB)</p> -->
<div
class=
"input-group"
>
<label
for=
"pic_file"
class=
"smlabel input-group-addon"
>
Picture
</label>
...
...
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