Problem/Motivation

Instead of having it just a Javascript-based change, it might be useful for some web site owners to be able to add this as a Drupal block.
If the block is enabled on a page, the Javascript should detect it and not show up.

Comments

jcnventura created an issue. See original summary.

omkar-pd’s picture

Assigned: Unassigned » omkar-pd
omkar-pd’s picture

Assigned: omkar-pd » Unassigned
Status: Active » Needs review
StatusFileSize
new2.57 KB
new262.11 KB
  • Added Stand With Ukraine Banner as a Block.
  • If user places the block in any region then js library won't we attached.
  • If user disables/remove the block then the original js library will be attached and banner will be displayed again.
  • Followed all the coding standards as well.
ruturaj chaubey’s picture

Assigned: Unassigned » ruturaj chaubey

Will review this.

ruturaj chaubey’s picture

+++ b/stand_with_ukraine.libraries.yml
@@ -1,9 +1,12 @@
+styling: ¶

This line adds whitespace error. Please solve this.

ruturaj chaubey’s picture

Assigned: ruturaj chaubey » Unassigned
Status: Needs review » Needs work
omkar-pd’s picture

Assigned: Unassigned » omkar-pd

Will work.

omkar-pd’s picture

Assigned: omkar-pd » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.57 KB

fixed.

ruturaj chaubey’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new38.02 KB

The patch is working fine. Refer the image file for results.

  • cmd87 committed babc1f5 on 1.0.x authored by omkar-pd
    Issue #3271375 by omkar-pd, Ruturaj Chaubey, jcnventura: Show the banner...
cmd87’s picture

Status: Reviewed & tested by the community » Fixed

Thank you guys! Patch applied and new version released.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.