CSS changes
This commit is contained in:
parent
8b5e2ed41b
commit
5ba9f1d7d5
3 changed files with 8 additions and 7 deletions
|
|
@ -156,7 +156,7 @@ class Message(BaseModel):
|
||||||
# even if unlisted
|
# even if unlisted
|
||||||
return not is_public_timeline
|
return not is_public_timeline
|
||||||
elif privacy == MSGPRV_FRIENDS:
|
elif privacy == MSGPRV_FRIENDS:
|
||||||
if cur_user.is_anonymous:
|
if not cur_user or cur_user.is_anonymous:
|
||||||
return False
|
return False
|
||||||
return user.is_following(cur_user) and cur_user.is_following(user)
|
return user.is_following(cur_user) and cur_user.is_following(user)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ a:hover{text-decoration:underline}
|
||||||
.content a svg{fill:#3399ff}
|
.content a svg{fill:#3399ff}
|
||||||
.content a.plus{color:#ff3018}
|
.content a.plus{color:#ff3018}
|
||||||
.metanav{float:right}
|
.metanav{float:right}
|
||||||
|
.metanav-divider{width:1px;background:white;display:inline-block}
|
||||||
.header h1{margin:0;display:inline-block}
|
.header h1{margin:0;display:inline-block}
|
||||||
.flash{background-color:#ff9;border:yellow 1px solid}
|
.flash{background-color:#ff9;border:yellow 1px solid}
|
||||||
.infobox{padding:12px;border:#ccc 1px solid}
|
.infobox{padding:12px;border:#ccc 1px solid}
|
||||||
|
|
|
||||||
|
|
@ -12,18 +12,18 @@
|
||||||
<h1><a href="{{ url_for('website.homepage') }}">{{ site_name }}</a></h1>
|
<h1><a href="{{ url_for('website.homepage') }}">{{ site_name }}</a></h1>
|
||||||
<div class="metanav">
|
<div class="metanav">
|
||||||
{% if current_user.is_anonymous %}
|
{% if current_user.is_anonymous %}
|
||||||
<a href="{{ url_for('website.login', next=request.full_path) }}">{{ inline_svg('exit_to_app') }} log in</a>
|
<a href="{{ url_for('website.login', next=request.full_path) }}">{{ inline_svg('exit_to_app') }} <span class="mobile-collapse">log in</span></a>
|
||||||
<a href="{{ url_for('website.register', next=request.full_path) }}">{{ inline_svg('person_add') }} register</a>
|
<a href="{{ url_for('website.register', next=request.full_path) }}">{{ inline_svg('person_add') }} <span class="mobile-collapse">register</span></a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ url_for('website.user_detail', username=current_user.username) }}">{{ inline_svg('person') }} {{ current_user.username }}</a>
|
<a href="{{ url_for('website.user_detail', username=current_user.username) }}">{{ inline_svg('person') }} {{ current_user.username }}</a>
|
||||||
{% set notification_count = current_user.unseen_notification_count() %}
|
{% set notification_count = current_user.unseen_notification_count() %}
|
||||||
{% if notification_count > 0 %}
|
{% if notification_count > 0 %}
|
||||||
<a href="{{ url_for('website.notifications') }}">(<strong>{{ notification_count }}</strong>)</a>
|
<a href="{{ url_for('website.notifications') }}">(<strong>{{ notification_count }}</strong>)</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
-
|
<span class="metanav-divider"></span>
|
||||||
<a href="{{ url_for('website.public_timeline') }}">{{ inline_svg('explore') }} explore</a>
|
<a href="{{ url_for('website.public_timeline') }}">{{ inline_svg('explore') }} <span class="mobile-collapse">explore</span></a>
|
||||||
<a href="{{ url_for('website.create') }}">{{ inline_svg('edit') }} create</a>
|
<a href="{{ url_for('website.create') }}">{{ inline_svg('edit') }} <span class="mobile-collapse">create</span></a>
|
||||||
<a href="{{ url_for('website.logout') }}">{{ inline_svg('exit_to_app') }} log out</a>
|
<a href="{{ url_for('website.logout') }}">{{ inline_svg('exit_to_app') }} <span class="mobile-collapse">log out</span></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue