Skip to content
GitLab
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
f6eae023
Commit
f6eae023
authored
Feb 02, 2017
by
okhin
🚴
Browse files
Merge branch 'materialize' into 'master'
Materialize See merge request
!9
parents
cdca56e8
d4dc898a
Pipeline
#829
passed with stage
in 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
templates/contactslist.html
View file @
f6eae023
...
...
@@ -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
,
...
...
templates/header.html
View file @
f6eae023
...
...
@@ -6,8 +6,7 @@
<meta
name=
"author"
content=
"{{ @organization.name }}"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<!-- Materialize -->
<link
href=
"http://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<link
href=
"/static/css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/static/css/materialize.min.css"
media=
"screen,projection"
/>
<!-- JS Materialize -->
<script
src=
"/static/js/jquery-2.1.1.js"
></script>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment