Compare commits
2 Commits
7e6043891d
...
63895052f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63895052f0 | ||
|
|
6fce468dc0 |
@@ -231,6 +231,8 @@ def add_to_front(mid,location):
|
|||||||
|
|
||||||
if location == "home":
|
if location == "home":
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
elif location == "mid":
|
||||||
|
return redirect(url_for('home.page', mid=mid))
|
||||||
else:
|
else:
|
||||||
return redirect(url_for('home.full_list'))
|
return redirect(url_for('home.full_list'))
|
||||||
|
|
||||||
@@ -248,6 +250,8 @@ def remove_front(mid, location):
|
|||||||
|
|
||||||
if location == "home":
|
if location == "home":
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
elif location == "mid":
|
||||||
|
return redirect(url_for('home.page', mid=mid))
|
||||||
else:
|
else:
|
||||||
return redirect(url_for('home.full_list'))
|
return redirect(url_for('home.full_list'))
|
||||||
|
|
||||||
@@ -270,6 +274,8 @@ def add_to_home(mid, location):
|
|||||||
|
|
||||||
if location == "home":
|
if location == "home":
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
elif location == "mid":
|
||||||
|
return redirect(url_for('home.page', mid=mid))
|
||||||
else:
|
else:
|
||||||
return redirect(url_for('home.full_list'))
|
return redirect(url_for('home.full_list'))
|
||||||
|
|
||||||
@@ -282,6 +288,8 @@ def remove_home(mid,location):
|
|||||||
|
|
||||||
if location == "home":
|
if location == "home":
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
elif location == "mid":
|
||||||
|
return redirect(url_for('home.page', mid=mid))
|
||||||
else:
|
else:
|
||||||
return redirect(url_for('home.full_list'))
|
return redirect(url_for('home.full_list'))
|
||||||
|
|
||||||
|
|||||||
BIN
myriad/static/lock.png
Normal file
BIN
myriad/static/lock.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 264 B |
@@ -148,9 +148,9 @@ form textarea{
|
|||||||
|
|
||||||
.title{
|
.title{
|
||||||
font-size:20px;
|
font-size:20px;
|
||||||
|
display:block;
|
||||||
margin-top:20px;
|
margin-top:20px;
|
||||||
margin-bottom:20px;
|
margin-bottom:20px;
|
||||||
display:block;
|
|
||||||
}
|
}
|
||||||
.heading.big{
|
.heading.big{
|
||||||
font-size:20px;
|
font-size:20px;
|
||||||
@@ -166,6 +166,17 @@ form textarea{
|
|||||||
display:block;
|
display:block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lock{
|
||||||
|
float:left;
|
||||||
|
margin-right:10px;
|
||||||
|
}
|
||||||
|
.minilock{
|
||||||
|
width:16px;
|
||||||
|
height:auto;
|
||||||
|
float:left;
|
||||||
|
margin-right:10px;
|
||||||
|
}
|
||||||
|
|
||||||
#blog{
|
#blog{
|
||||||
max-height:300px;
|
max-height:300px;
|
||||||
overflow-y:scroll;
|
overflow-y:scroll;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="profile {{member[10]}}" id="m{{ member[0] }}">
|
<div class="profile {{member[10]}}" id="m{{ member[0] }}">
|
||||||
<div class="heading"><b>{{ member[3]|safe }}</b> {{ member[4]|safe }}</div>
|
<div class="heading">{% if member[9]==0 %}<img class="minilock" src="{{ url_for('static', filename='lock.png') }}">{% endif %}<b>{{ member[3]|safe }}</b> {{ member[4]|safe }}</div>
|
||||||
{% if icons[member[0]] %}
|
{% if icons[member[0]] %}
|
||||||
<img src="{{ url_for('static', filename='icons/'+icons[member[0]]) }}" class="icon">
|
<img src="{{ url_for('static', filename='icons/'+icons[member[0]]) }}" class="icon">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
{% if g.user %}
|
{% if g.user %}
|
||||||
<a href="{{url_for('manage.edit', mid=member[0])}}">Edit member</a> ☆ {% if member[8]==0 %}<a href="{{ url_for('manage.add_to_front', mid=member[0],location='home') }}">Add to Front</a>{% else %}<a href="{{ url_for('manage.remove_front', mid=member[0],location='home') }}">Remove from Front</a>{% endif %} ☆ {% if member[7]==0 %}<a href="{{ url_for('manage.add_to_home', mid=member[0],location='home') }}">Pin to Homepage</a>{% else %}<a href="{{ url_for('manage.remove_home', mid=member[0],location='home') }}">Unpin from Homepage</a>{% endif %}
|
<a href="{{url_for('manage.edit', mid=member[0])}}">Edit member</a> ☆ {% if member[8]==0 %}<a href="{{ url_for('manage.add_to_front', mid=member[0],location='mid') }}">Add to Front</a>{% else %}<a href="{{ url_for('manage.remove_front', mid=member[0],location='mid') }}">Remove from Front</a>{% endif %} ☆ {% if member[7]==0 %}<a href="{{ url_for('manage.add_to_home', mid=member[0],location='mid') }}">Pin to Homepage</a>{% else %}<a href="{{ url_for('manage.remove_home', mid=member[0],location='mid') }}">Unpin from Homepage</a>{% endif %}
|
||||||
<br class="clear" />
|
<br class="clear" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<img class="icon" src="{{ url_for('static', filename='any.jpg') }}">
|
<img class="icon" src="{{ url_for('static', filename='any.jpg') }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="title">{{member[3]}}</div>
|
<div class="title">{% if member[9]==0 %}<img class="lock" src="{{ url_for('static', filename='lock.png') }}">{% endif %}{{member[3]}}</div>
|
||||||
<div class="maintext">
|
<div class="maintext">
|
||||||
{{member[5].replace('\n', '<br>')|safe}}
|
{{member[5].replace('\n', '<br>')|safe}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user