From 729c06b8380fc6c8718f5d371b9e4156e83f04ec Mon Sep 17 00:00:00 2001 From: Sven Hoehn Date: Thu, 21 Dec 2017 19:31:06 +0100 Subject: [PATCH] basic styling talk.ipfire.org --- static/css/style.css | 8 ++- static/scss/_nav.scss | 4 +- templates/modules/menu.html | 6 +- templates/talk/diagnosis.html | 36 ++++++----- templates/talk/index.html | 39 +++++++----- templates/talk/modules/call-log.html | 2 +- templates/talk/modules/lines.html | 2 +- templates/talk/phonebook-contact.html | 61 ++++++++++-------- templates/talk/phonebook.html | 91 ++++++++++++--------------- 9 files changed, 130 insertions(+), 119 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 44255d2..f9ef945 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -5879,12 +5879,16 @@ h5.fireinfo { body.About li.nav-item a.about, body.Download li.nav-item a.download, body.Support li.nav-item a.support, - body.Involved li.nav-item a.community { + body.Involved li.nav-item a.community, + body.Phonebook li.nav-item a.phonebook, + body.Diagnosis li.nav-item a.diagnosis { color: #b71c1c; } body.About li.nav-item a.about:after, body.Download li.nav-item a.download:after, body.Support li.nav-item a.support:after, - body.Involved li.nav-item a.community:after { + body.Involved li.nav-item a.community:after, + body.Phonebook li.nav-item a.phonebook:after, + body.Diagnosis li.nav-item a.diagnosis:after { content: ""; border-bottom: 2px solid #b71c1c; position: absolute; diff --git a/static/scss/_nav.scss b/static/scss/_nav.scss index 48c024d..837e4ea 100644 --- a/static/scss/_nav.scss +++ b/static/scss/_nav.scss @@ -213,7 +213,9 @@ body.About li.nav-item a.about, body.Download li.nav-item a.download, body.Support li.nav-item a.support, -body.Involved li.nav-item a.community { +body.Involved li.nav-item a.community, +body.Phonebook li.nav-item a.phonebook, +body.Diagnosis li.nav-item a.diagnosis { @include media-breakpoint-up(lg) { color: $red_900; &:after { diff --git a/templates/modules/menu.html b/templates/modules/menu.html index 09b96d8..615996d 100644 --- a/templates/modules/menu.html +++ b/templates/modules/menu.html @@ -55,11 +55,11 @@ {% elif hostname == "talk.ipfire.org" and current_user %} {% end %} diff --git a/templates/talk/diagnosis.html b/templates/talk/diagnosis.html index a609e7b..515012f 100644 --- a/templates/talk/diagnosis.html +++ b/templates/talk/diagnosis.html @@ -3,23 +3,25 @@ {% block title %}{{ _("Diagnosis") }}{% end block %} {% block body %} - - -
-

{{ _("Test Call") }}

- -
- - 9999@ipfire.org - - {{ _("A music playing service") }} +
+
+

{{ _("Diagnosis") }}

+ +
+
+ + + 9999@ipfire.org - {{ _("A music playing service") }} +
+ +
+ {% if current_user.is_admin() %} +
+ {% module TalkLines(show_account=True) %} +
+ {% end %} +
- - {% if current_user.is_admin() %} -
- {% module TalkLines(show_account=True) %} -
- {% end %} +
{% end block %} diff --git a/templates/talk/index.html b/templates/talk/index.html index 51f4cc9..052e828 100644 --- a/templates/talk/index.html +++ b/templates/talk/index.html @@ -3,11 +3,15 @@ {% block title %}{{ _("Index") }}{% end block %} {% block body %} - - - {% if favourite_contacts %} +
+
+
+
+

{{ _("Hello, %s!") % current_user.first_name or current_user.name }}

+
+
+ + {% if favourite_contacts %}
{% for contact in favourite_contacts %}
@@ -15,21 +19,20 @@
- {% if contact.called_account %} -

- - {{ contact.called_account.name }} - -

- {% else %} -

{{ contact.called }}

- {% end %} + {% if contact.called_account %} +

+ + {{ contact.called_account.name }} + +

+ {% else %} +

{{ contact.called }}

+ {% end %}

+ + + + + + + + + + {% for e in phonebook %} + + + + + + + {% end %} + +
NameeMailPhoneGravatar
{{ e.name }} + {{ e.email }} + {% if e.sip_id %} + + {% if e.uses_sip_forwarding() %} + {{ e.sip_id }} + {% elif e.sip_is_online() %} + {{ e.sip_id }} + {% else %} + {{ e.sip_id }} {% end %} - - - - -
- - {{ e.name }} - -
- - {% end %} - - - + {% end %} +
{{ e.name }}
+
+ +
+ {% end block %} -- 2.39.5