-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Tagging system with autocomplete feature #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have requested some more changes. Solve them and the linting offenses and this is good to go
app/views/new_threads/list.html.erb
Outdated
@@ -22,6 +22,10 @@ | |||
<p><%= truncate_html(new_thread.description.html_safe) %> (<%= link_to "Read more", new_thread, :class => "thread-link"%>)</p> | |||
</div> | |||
|
|||
<div class="thread-foot">Tags : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the selectize css classes here to design the tags similar to that in the autocomplete.
app/views/new_threads/show.html.erb
Outdated
@@ -26,6 +26,8 @@ | |||
</div> | |||
|
|||
<div class="thread-foot"> | |||
Tags : <%=raw @new_thread.tag_list.map {|t| link_to t,tag_path(t)}.join(', ') %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use .html_safe
at the end of this statement. Like .join(', ').html_safe
@divyanshumehta solve the XSS issue as I have mentioned using |
@divyanshumehta This looks good now. Merging it. Learn to write tests now. |
No description provided.