-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from adinhodovic/add-last-update
feat: Add last update date
- Loading branch information
Showing
10 changed files
with
206 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
wagtail_resume/migrations/0014_baseresumepage_display_last_update.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 5.0.2 on 2024-04-17 15:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("wagtail_resume", "0013_alter_baseresumepage_resume"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="baseresumepage", | ||
name="display_last_update", | ||
field=models.BooleanField( | ||
default=True, | ||
help_text="If enabled, the last update date will be displayed.", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletions
16
wagtail_resume/templates/wagtail_resume/blocks/contributions_block.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
{% load wagtailcore_tags %} | ||
|
||
<h2 class="section-title"> | ||
{% if value.fa_icon %}<i class="{{ value.fa_icon }}"></i>{% endif %} | ||
<h2 class="mt-4 mb-0"> | ||
{% if value.fa_icon %}<i class="{{ value.fa_icon }} mr-2"></i>{% endif %} | ||
<span>{{ value.heading }}</span> | ||
</h2> | ||
<hr> | ||
<hr /> | ||
<ul> | ||
{% for contribution in value.contributions %} | ||
<li> | ||
<a class="contribution-title" href="{{ contribution.url }}"><b>{{ contribution.title }}</b></a> | ||
<p class="contribution-description">{{ contribution.description }}</p> | ||
</li> | ||
<li> | ||
<a href="{{ contribution.url }}"> | ||
<h3>{{ contribution.title }}</h3> | ||
</a> | ||
<p>{{ contribution.description }}</p> | ||
</li> | ||
{% endfor %} | ||
</ul> |
Oops, something went wrong.