Skip to content

Commit

Permalink
refactor: adding the save component
Browse files Browse the repository at this point in the history
  • Loading branch information
rzashakeri committed Jul 2, 2022
1 parent 123f9f2 commit 67baf71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 8 additions & 0 deletions post/templates/post/components/save_component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="flex gap-2 tooltip tooltip-bottom" data-tip="Save">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"></path>
</svg>
<span>Save</span>
</div>
10 changes: 2 additions & 8 deletions post/templates/post/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,8 @@ <h1 class="text-xl font-bold capitalize">{{ post.user.get_full_name }}</h1>
{% include "post/components/viral_component.html" %}

{% include "post/components/share_component.html" %}
<div class="flex gap-2 tooltip tooltip-bottom" data-tip="Save">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"></path>
</svg>
<span>Save</span>
</div>

{% include "post/components/save_component.html" %}
</div>

<div id="comment-list">
Expand Down

0 comments on commit 67baf71

Please sign in to comment.