Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
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
Nounous
framadate
Commits
3fb351db
Commit
3fb351db
authored
9 years ago
by
Olivier Perez
Browse files
Options
Downloads
Patches
Plain Diff
Don't display description on studs.php if the field is blank
parent
f5c4dddd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tpl/part/poll_info.tpl
+14
-12
14 additions, 12 deletions
tpl/part/poll_info.tpl
with
14 additions
and
12 deletions
tpl/part/poll_info.tpl
+
14
−
12
View file @
3fb351db
...
...
@@ -72,18 +72,20 @@
</div>
{/
if
}
</div>
<div
class=
"form-group col-md-8"
id=
"description-form"
>
<label
class=
"control-label"
>
{__('Generic', 'Description')}
{
if
$admin
&&
!
$expired
}
<button
class=
"btn btn-link btn-sm btn-edit"
title=
"{__('PollInfo', 'Edit the description')}"
><span
class=
"glyphicon glyphicon-pencil"
></span><span
class=
"sr-only"
>
{__('Generic', 'Edit')}
</span></button>
{/
if
}
</label>
<pre
class=
"form-control-static well poll-description"
>
{
$poll
->
description
|
html
}
</pre>
{
if
$admin
&&
!
$expired
}
<div
class=
"hidden js-desc text-right"
>
<label
class=
"sr-only"
for=
"newdescription"
>
{__('Generic', 'Description')}
</label>
<textarea
class=
"form-control"
id=
"newdescription"
name=
"description"
rows=
"2"
cols=
"40"
>
{
$poll
->
description
|
html
}
</textarea>
<button
type=
"submit"
id=
"btn-new-desc"
name=
"update_poll_info"
value=
"description"
class=
"btn btn-sm btn-success"
title=
"{__('PollInfo', 'Save the description')}"
><span
class=
"glyphicon glyphicon-ok"
></span><span
class=
"sr-only"
>
{__('Generic', 'Save')}
</span></button>
<button
class=
"btn btn-default btn-sm btn-cancel"
title=
"{__('PollInfo', 'Cancel the description edit')}"
><span
class=
"glyphicon glyphicon-remove"
></span><span
class=
"sr-only"
>
{__('Generic', 'Cancel')}
</span></button>
</div>
{/
if
}
</div>
{
if
$admin
||
!
empty
(
preg_replace
(
'/[ \r\n]/'
,
''
,
$poll
->
description
))
}
<div
class=
"form-group col-md-8"
id=
"description-form"
>
<label
class=
"control-label"
>
{__('Generic', 'Description')}
{
if
$admin
&&
!
$expired
}
<button
class=
"btn btn-link btn-sm btn-edit"
title=
"{__('PollInfo', 'Edit the description')}"
><span
class=
"glyphicon glyphicon-pencil"
></span><span
class=
"sr-only"
>
{__('Generic', 'Edit')}
</span></button>
{/
if
}
</label>
<pre
class=
"form-control-static well poll-description"
>
{
$poll
->
description
|
html
}
</pre>
{
if
$admin
&&
!
$expired
}
<div
class=
"hidden js-desc text-right"
>
<label
class=
"sr-only"
for=
"newdescription"
>
{__('Generic', 'Description')}
</label>
<textarea
class=
"form-control"
id=
"newdescription"
name=
"description"
rows=
"2"
cols=
"40"
>
{
$poll
->
description
|
html
}
</textarea>
<button
type=
"submit"
id=
"btn-new-desc"
name=
"update_poll_info"
value=
"description"
class=
"btn btn-sm btn-success"
title=
"{__('PollInfo', 'Save the description')}"
><span
class=
"glyphicon glyphicon-ok"
></span><span
class=
"sr-only"
>
{__('Generic', 'Save')}
</span></button>
<button
class=
"btn btn-default btn-sm btn-cancel"
title=
"{__('PollInfo', 'Cancel the description edit')}"
><span
class=
"glyphicon glyphicon-remove"
></span><span
class=
"sr-only"
>
{__('Generic', 'Cancel')}
</span></button>
</div>
{/
if
}
</div>
{/
if
}
</div>
<div
class=
"row"
>
</div>
...
...
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