0.0.24 my routes
This commit is contained in:
@@ -550,7 +550,7 @@ def my_routes_ajax(request):
|
||||
Dict = {
|
||||
}
|
||||
|
||||
html = render_to_string('blocks/profile/b_my_routes.html', Dict, request=request)
|
||||
html = render_to_string('v2/blocks/b_my_routes.html', Dict, request=request)
|
||||
res_Dict = {'html': html}
|
||||
from GeneralApp.funcs import get_add_to_ajax_response_Dict
|
||||
res_Dict.update(get_add_to_ajax_response_Dict(request.user))
|
||||
|
||||
@@ -149,7 +149,7 @@ def get_profile_my_routes_page_content_html(request):
|
||||
if user_subscribe:
|
||||
routes_Dict.update(user_subscribe.remains_route_adding_options())
|
||||
|
||||
html = render_to_string('blocks/profile/b_my_routes.html', routes_Dict, request=request)
|
||||
html = render_to_string('v2/blocks/b_my_routes.html', routes_Dict, request=request)
|
||||
return html
|
||||
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ def del_route_ajax(request):
|
||||
if 'errors' in routes_Dict:
|
||||
return JsonResponse(routes_Dict, status=400)
|
||||
|
||||
html = render_to_string('blocks/profile/b_my_routes.html', routes_Dict, request=request)
|
||||
html = render_to_string('v2/blocks/b_my_routes.html', routes_Dict, request=request)
|
||||
|
||||
res_Dict = {
|
||||
'html': html
|
||||
@@ -324,7 +324,7 @@ def get_my_routes_ajax(request):
|
||||
routes_Dict.update(user_subscribe.remains_route_adding_options())
|
||||
|
||||
|
||||
html = render_to_string('blocks/profile/b_my_routes.html', routes_Dict, request=request)
|
||||
html = render_to_string('v2/blocks/b_my_routes.html', routes_Dict, request=request)
|
||||
|
||||
res_Dict = {
|
||||
'html': html
|
||||
@@ -457,7 +457,7 @@ def create_or_change_route_ajax(request, route_id=None):
|
||||
html = render_to_string(tpl_form_by_owner_type, Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=400)
|
||||
|
||||
html = render_to_string('blocks/profile/b_my_routes.html', routes_Dict, request=request)
|
||||
html = render_to_string('v2/blocks/b_my_routes.html', routes_Dict, request=request)
|
||||
|
||||
res_Dict = {
|
||||
'html': html,
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
--route-text-container-bg: #F1F1F1;
|
||||
--route-text-container-padding: 15px;
|
||||
--route-text-container-margin: 7px 0 0 51px;
|
||||
--route-text-container-border-radius: 10px;
|
||||
--route-text-img-filter: brightness(0) saturate(100%) invert(100%) sepia(2%) saturate(256%) hue-rotate(113deg) brightness(115%) contrast(89%);
|
||||
|
||||
--route-card-owner-avatar-size: 52px;
|
||||
@@ -17,19 +19,27 @@
|
||||
position: relative;
|
||||
.route_card_text_img{
|
||||
position: absolute;
|
||||
top: 25px;
|
||||
top: 5px;
|
||||
left: 0;
|
||||
filter: var(--route-text-img-filter);
|
||||
display: block;
|
||||
z-index: 1;
|
||||
}
|
||||
.route_card_owner_avatar{
|
||||
height: var(--route-card-owner-avatar-size);
|
||||
width: var(--route-card-owner-avatar-size);
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 11px;
|
||||
left: 6px;
|
||||
z-index: 10;
|
||||
}
|
||||
.route_card_text_container{
|
||||
background: var(--route-text-container-bg);
|
||||
padding: var(--route-text-container-padding);
|
||||
margin: var(--route-text-container-margin);
|
||||
border-radius: var(--route-text-container-border-radius);
|
||||
}
|
||||
.route_card_owner_info{
|
||||
margin-left: 75px;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 999 B After Width: | Height: | Size: 1.9 KiB |
Reference in New Issue
Block a user