You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/08/20 17:53:49 UTC

[airavata-django-portal] 02/06: AIRAVATA-3500 Update label and icon of CodeBlock

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit e3ca58ff45317cdc95816f22436ecc2764fadfd2
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Fri Aug 20 09:58:20 2021 -0400

    AIRAVATA-3500 Update label and icon of CodeBlock
---
 django_airavata/wagtailapps/base/blocks.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/django_airavata/wagtailapps/base/blocks.py b/django_airavata/wagtailapps/base/blocks.py
index 3fbb022..762e1b7 100644
--- a/django_airavata/wagtailapps/base/blocks.py
+++ b/django_airavata/wagtailapps/base/blocks.py
@@ -524,7 +524,8 @@ class BaseStreamBlock(StreamBlock):
     bootstrap_embed_video = BootstrapEmbedVideo()
     buttonmore_block = BootstrapButtonMore()
     HTML_code = RawHTMLBlock()
-    code_to_copy = CodeBlock()
+    # Using 'snippet' icon for uniqueness (RawHTMLBlock already uses 'code' icon)
+    code_snippet = CodeBlock(icon="snippet")
 
 
 class CssStreamBlock(StreamBlock):