Compare commits
2 Commits
7e6043891d
...
63895052f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63895052f0 | ||
|
|
6fce468dc0 |
@@ -231,6 +231,8 @@ def add_to_front(mid,location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
return redirect(url_for('home.full_list'))
|
||||
|
||||
@@ -248,6 +250,8 @@ def remove_front(mid, location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
return redirect(url_for('home.full_list'))
|
||||
|
||||
@@ -270,6 +274,8 @@ def add_to_home(mid, location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
return redirect(url_for('home.full_list'))
|
||||
|
||||
@@ -282,6 +288,8 @@ def remove_home(mid,location):
|
||||
|
||||
if location == "home":
|
||||
return redirect(url_for('index'))
|
||||
elif location == "mid":
|
||||
return redirect(url_for('home.page', mid=mid))
|
||||
else:
|
||||
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{
|
||||
font-size:20px;
|
||||
display:block;
|
||||
margin-top:20px;
|
||||
margin-bottom:20px;
|
||||
display:block;
|
||||
}
|
||||
.heading.big{
|
||||
font-size:20px;
|
||||
@@ -166,6 +166,17 @@ form textarea{
|
||||
display:block;
|
||||
}
|
||||
|
||||
.lock{
|
||||
float:left;
|
||||
margin-right:10px;
|
||||
}
|
||||
.minilock{
|
||||
width:16px;
|
||||
height:auto;
|
||||
float:left;
|
||||
margin-right:10px;
|
||||
}
|
||||
|
||||
#blog{
|
||||
max-height:300px;
|
||||
overflow-y:scroll;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
<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]] %}
|
||||
<img src="{{ url_for('static', filename='icons/'+icons[member[0]]) }}" class="icon">
|
||||
{% else %}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{% else %}
|
||||
|
||||
{% 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" />
|
||||
{% endif %}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
{% else %}
|
||||
<img class="icon" src="{{ url_for('static', filename='any.jpg') }}">
|
||||
{% 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">
|
||||
{{member[5].replace('\n', '<br>')|safe}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user