Skip to content

Commit

Permalink
Merge pull request #309 from istresearch/feature/PE-117-youtube into …
Browse files Browse the repository at this point in the history
…develop

- PE-117 - Postoffice: Add Youtube Channel
  • Loading branch information
baracudda authored Aug 11, 2023
2 parents 9b439b4 + bd55141 commit aff3a5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engage/channels/types/postmaster/schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class PM_Schemes:
PM_SESSION_SCHEME = "pm_session"
PM_REDDIT_SCHEME = "pm_reddit"
PM_MASTODON_SCHEME = "pm_mastodon"
PM_YOUTUBE_SCHEME = "pm_youtube"

# notes: iconclass can be a bootstrap icon glyph (icon-*); some will need 'pm-icon' to ensure css works right, or
# use a class that does _not_ begin with "icon-" and add to engage/static/engage/less/engage.less near
Expand All @@ -48,6 +49,7 @@ class PM_Schemes:
Schemes_Meta(PM_Schemes.PM_SESSION_SCHEME, _("Postmaster Session Identifier"), "icon-session-messenger", "SESS", _("Session")),
Schemes_Meta(PM_Schemes.PM_REDDIT_SCHEME, _("Postmaster Reddit Identifier"), "icon-reddit", "REDDIT",_("Reddit")),
Schemes_Meta(PM_Schemes.PM_MASTODON_SCHEME, _("Postmaster Mastodon Identifier"), "icon-mastodon", "MAST", _("Mastodon")),
Schemes_Meta(PM_Schemes.PM_YOUTUBE_SCHEME, _("Postmaster Youtube Identifier"), "icon-youtube", "YT", _("Youtube")),
]

PM_Scheme_Icons = { ico.scheme: ico.iconclass for ico in PM_Schemes_Meta }
Expand Down
Binary file added engage/static/engage/img/youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions engage/static/engage/less/engage.less
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,14 @@ temba-modax#send-via-pm_mastodon > div.send-via-btn {
width: @chatIconSize;
margin-top: 0px;
}
.mode-icon-pm_youtube,
temba-modax#send-via-pm_youtube > div.send-via-btn {
background: url("@{imgEngagePath}/youtube.png");
background-size: @chatIconSize;
height: @chatIconSize;
width: @chatIconSize;
margin-top: 0px;
}
/* ----------------------------------------------------*/


Expand Down

0 comments on commit aff3a5e

Please sign in to comment.