Skip to content
Snippets Groups Projects
Commit 367c1523 authored by BinBin's avatar BinBin
Browse files

오류 수정 완료

parent d518eb84
No related branches found
No related tags found
No related merge requests found
......@@ -261,11 +261,11 @@
</div>
{% if type == 'photozone' %}
<div class="col col-8 text-center ">
<span class="fs-3 fw-normal align-middle" >{{ user.univ }} 전경 게시판</span>
<span class="fs-3 fw-normal align-middle" >{{ user.univ }} 포토존 게시판</span>
</div>
{% else %}
<div class="col col-8 text-center ">
<span class="fs-3 fw-normal align-middle" >{{ user.univ }} 경 게시판</span>
<span class="fs-3 fw-normal align-middle" >{{ user.univ }} 경 게시판</span>
</div>
{% endif %}
<div class="col col-2 text-end" >
......
......@@ -55,17 +55,17 @@
{% if is_like %}
<label class="col col-form-label"><i class="like bi bi-hand-thumbs-up-fill fs-5"></i> : {{like_count}} 조회수 : {{view_count}}
{% if is_report %}
신고 : <i class="report bi bi-exclamation-circle"></i></label>
{% else %}
신고 : <i class="report bi bi-exclamation-circle-fill"></i></label>
{% else %}
신고 : <i class="report bi bi-exclamation-circle"></i></label>
{% endif %}
{% else %}
<label class="col col-form-label"><i class="like bi bi-hand-thumbs-up fs-5"></i> : {{like_count}} 조회수 : {{view_count}}
{% if is_report %}
신고 : <i class="report bi bi-exclamation-circle"></i></label>
{% else %}
신고 : <i class="report bi bi-exclamation-circle-fill"></i></label>
{% else %}
신고 : <i class="report bi bi-exclamation-circle"></i></label>
{% endif %}
{% endif %}
......@@ -133,8 +133,7 @@
console.log("클릭했다");
let feed_id = "{{id}}"
let email = "{{ user_email }}";
console.log(feed_id);
console.log(email);
console.log('{{feed_type}}');
$.ajax({
url: "/content/delete",
......@@ -146,7 +145,7 @@
dataType: "json",
success: function (data){
alert(data.message);
if ( '{{feed_type}}') {
if ( '{{feed_type}}'=='False') {
location.replace("{% url 'main'%}?type=photozone");
}
else {
......@@ -216,7 +215,7 @@
success: function (data){
if (data.message == '신고 5회 누적 게시글 삭제 완료') {
console.log(data.message)
if ( '{{feed_type}}') {
if ( '{{feed_type}}'=='False') {
location.replace("{% url 'main'%}?type=photozone");
}
else {
......
......@@ -61,7 +61,8 @@
method: "POST",
dataType: "json",
success: function (data){
location.replace("{% url 'main' %}?type=photozone");
// location.replace("{% url 'main' %}?type=photozone");
location.href = "{% url 'main' %}?type=photozone";
},
error:function (request, status, error){
let data = JSON.parse(request.responseText);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment