Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
163d7fe3
Commit
163d7fe3
authored
Feb 02, 2017
by
okhin
Browse files
Fixing the contactslist
parent
78d8e163
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/contactslist.html
View file @
163d7fe3
...
...
@@ -11,7 +11,7 @@
<repeat
group=
"{{ @contacts }}"
value=
"{{ @contact }}"
>
<li
class=
"collection-item avatar"
data-json=
'{{ json_encode(@contact) }}'
>
<img
src=
"<check if="
{{
@
contact.photo =
=
''
}}"
>
/static/img/placeholder.jpg
<false>
{{ @contact.photo }}
</false></check>
" class="circle">
<span
class=
"title"
>
{{
@contact.last_name }} {{
@contact.full_name }}
</span>
<span
class=
"title"
>
{{ @contact.full_name }}
</span>
<ul>
<repeat
group=
"{{ @contact.groups }}"
value=
"{{ @group }}"
>
<li
class=
"chip"
>
{{ @group.name }}
</li>
...
...
@@ -27,7 +27,7 @@ $(document).ready(function() {
$
(
'
input.autocomplete
'
).
autocomplete
({
data
:
{
<
repeat
group
=
"
{{ @contacts }}
"
value
=
"
{{ @contact }}
"
>
"
{{ @contact.f
irst_name }} {{ @contact.last
_name }}
"
:
<
check
if
=
"
{{ @contact.photo == '' }}
"
>
null
<
false
>
{{
@
contact
.
photo
}}
<
/false></
check
>
,
"
{{ @contact.f
ull
_name }}
"
:
<
check
if
=
"
{{ @contact.photo == '' }}
"
>
null
<
false
>
{{
@
contact
.
photo
}}
<
/false></
check
>
,
<
/repeat
>
},
limit
:
20
,
...
...
Write
Preview
Supports
Markdown
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