Skip to content
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

Remove social media sharing, part of public site removal #3710

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions hypha/locale/django.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6627,22 +6627,6 @@ msgid ""
"is not defined."
msgstr ""

#: hypha/public/utils/models.py:268
msgid "Your Twitter username without the @, e.g. katyperry"
msgstr ""

#: hypha/public/utils/models.py:273
msgid "Your Facebook app ID."
msgstr ""

#: hypha/public/utils/models.py:279
msgid "Default sharing text to use if social text has not been set on a page."
msgstr ""

#: hypha/public/utils/models.py:286
msgid "Site name, used by Open Graph."
msgstr ""

#: hypha/public/utils/models.py:303
msgid "Default site logo"
msgstr ""
Expand Down Expand Up @@ -6695,22 +6679,6 @@ msgstr ""
msgid "You might also like…"
msgstr ""

#: hypha/templates/includes/share.html:4
msgid "Share"
msgstr ""

#: hypha/templates/includes/share.html:8
msgid "Share on Twitter"
msgstr ""

#: hypha/templates/includes/share.html:14
msgid "Share on LinkedIn"
msgstr ""

#: hypha/templates/includes/share.html:21
msgid "Share on Facebook"
msgstr ""

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is auto generated, better to update in a separate PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but can we get this merged and i'll take care of in the future PRs.

#: hypha/templates/password_required.html:4
#: hypha/templates/password_required.html:9
msgid "Password required"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("public_forms", "0004_auto_20220722_0844"),
]

operations = [
migrations.RemoveField(
model_name="formpage",
name="social_image",
),
migrations.RemoveField(
model_name="formpage",
name="social_text",
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("public_funds", "0014_auto_20220722_0844"),
]

operations = [
migrations.RemoveField(
model_name="baseapplicationpage",
name="social_image",
),
migrations.RemoveField(
model_name="baseapplicationpage",
name="social_text",
),
migrations.RemoveField(
model_name="fundindex",
name="social_image",
),
migrations.RemoveField(
model_name="fundindex",
name="social_text",
),
migrations.RemoveField(
model_name="labindex",
name="social_image",
),
migrations.RemoveField(
model_name="labindex",
name="social_text",
),
migrations.RemoveField(
model_name="labpage",
name="social_image",
),
migrations.RemoveField(
model_name="labpage",
name="social_text",
),
migrations.RemoveField(
model_name="opencallindexpage",
name="social_image",
),
migrations.RemoveField(
model_name="opencallindexpage",
name="social_text",
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("home", "0013_alter_homepage_our_work"),
]

operations = [
migrations.RemoveField(
model_name="homepage",
name="social_image",
),
migrations.RemoveField(
model_name="homepage",
name="social_text",
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("news", "0014_alter_newspagenewstype_news_type"),
]

operations = [
migrations.RemoveField(
model_name="newsindex",
name="social_image",
),
migrations.RemoveField(
model_name="newsindex",
name="social_text",
),
migrations.RemoveField(
model_name="newspage",
name="social_image",
),
migrations.RemoveField(
model_name="newspage",
name="social_text",
),
]
1 change: 0 additions & 1 deletion hypha/public/news/templates/news/news_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ <h4 class="heading">Projects Mentioned</h4>
</ul>
{% endif %}

{% include "includes/share.html" %}
</article>

{% include "includes/relatedcontent.html" with related_documents=page.related_documents.all related_pages=page.related_pages.all %}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("partner", "0002_currency_symbol_setting"),
]

operations = [
migrations.RemoveField(
model_name="partnerindexpage",
name="social_image",
),
migrations.RemoveField(
model_name="partnerindexpage",
name="social_text",
),
migrations.RemoveField(
model_name="partnerpage",
name="social_image",
),
migrations.RemoveField(
model_name="partnerpage",
name="social_text",
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("people", "0015_alter_personpage_biography"),
]

operations = [
migrations.RemoveField(
model_name="personindexpage",
name="social_image",
),
migrations.RemoveField(
model_name="personindexpage",
name="social_text",
),
migrations.RemoveField(
model_name="personpage",
name="social_image",
),
migrations.RemoveField(
model_name="personpage",
name="social_text",
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("projects", "0010_alter_projectpage_body"),
]

operations = [
migrations.RemoveField(
model_name="projectindexpage",
name="social_image",
),
migrations.RemoveField(
model_name="projectindexpage",
name="social_text",
),
migrations.RemoveField(
model_name="projectpage",
name="social_image",
),
migrations.RemoveField(
model_name="projectpage",
name="social_text",
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("standardpages", "0006_alter_informationpage_body"),
]

operations = [
migrations.RemoveField(
model_name="indexpage",
name="social_image",
),
migrations.RemoveField(
model_name="indexpage",
name="social_text",
),
migrations.RemoveField(
model_name="informationpage",
name="social_image",
),
migrations.RemoveField(
model_name="informationpage",
name="social_text",
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ <h4 class="heading heading--introduction">{{ page.introduction }}</h4>
{% endif %}

{% include_block page.body %}
{% include "includes/share.html" %}

</article>
</div>
Expand Down
15 changes: 15 additions & 0 deletions hypha/public/utils/migrations/0010_delete_socialmediasettings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by Django 4.2.9 on 2024-01-07 18:52

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("utils", "0009_systemmessagessettings_body_403_and_more"),
]

operations = [
migrations.DeleteModel(
name="SocialMediaSettings",
),
]
Loading