diff --git a/templates/certificationRegister.html b/templates/certificationRegister.html index 09aa847..b400148 100644 --- a/templates/certificationRegister.html +++ b/templates/certificationRegister.html @@ -12,6 +12,7 @@

새 인증서

+
diff --git a/templates/feedSearch.html b/templates/feedSearch.html index 63a2169..2aa69ac 100644 --- a/templates/feedSearch.html +++ b/templates/feedSearch.html @@ -116,23 +116,38 @@ {% if feed.inputTags %} + {% endif %} @@ -145,10 +160,6 @@ userImg {% endif %}

{{feed.userId.nickName}}

- {% endif %} @@ -294,29 +305,13 @@ } } - function hashTagsToArray(tags) { - console.log("!!") - const hashTagArray = str.split(" "); - - for (let i = 0; i < hashTagArray.length; i++){ - //const element = document.querySelector(`.hashTag`); - const newDiv = document.createElement('div'); - newDiv.setAttribute("class", "hashtag--btn"); - const newText = document.createTextNode(hashTagArray[i]); - newDiv.appendChild(newText); - const tagDiv = document.querySelector('.feed-hashtagList'); - tagDiv.append(newDiv); - - } - } - function autolink() { var container = document.getElementsByClassName("feed-content"); - for (let i = 0; i < container.length; i++) { - var doc = container[i].innerHTML; - var regURL = new RegExp("(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377()]+)","gi"); - container[i].innerHTML = doc.replace(regURL,"$1://$2"); - } + for (let i = 0; i < container.length; i++) { + var doc = container[i].innerHTML; + var regURL = new RegExp("(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377()]+)","gi"); + container[i].innerHTML = doc.replace(regURL,"$1://$2"); + } } autolink(); diff --git a/templates/updateFeed.html b/templates/updateFeed.html index 38208a0..1f814bb 100644 --- a/templates/updateFeed.html +++ b/templates/updateFeed.html @@ -1,6 +1,6 @@ - {% extends "searchBase.html" %} {% load static %} +{% load bootstrap4 %} {% block content %}

검색 결과: "{{query}}"

@@ -25,6 +25,7 @@
+ {% endif %} {% for feed in feeds %} @@ -60,7 +61,7 @@ {% endif %} {{ feed.like_users.count }} - {% endif %} + {% endif %}
{% for tag in feed.tags.all %}
{{tag}} @@ -103,12 +104,47 @@ {% endif %} {{ feed.like_users.count }} - {% endif %} + {% endif %}
{% for tag in feed.tags.all %} -
{{tag}} -
+
{{tag}}
{% endfor %} + {% if feed.inputTags %} + + + {% endif %}
@@ -138,7 +174,7 @@
- {% endfor %} + {% endfor %}