Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4011

FTL Templates Cleanup

    XMLWordPrintable

    Details

    • Tags:
    • Upgrade notes:
      Hide

      Upgrade Studio IDE from HTML4 to HTML5

      Show
      Upgrade Studio IDE from HTML4 to HTML5
    • Sprint:
      NOS 10.1.4
    • Story Points:
      1

      Description

      Correct Invalid URLs in FTL templates

      Several resources have outdated URLs (JavaScript, CSS, images). This tickets aims to do an cleanup to the following FTL:

      • ./nuxeo-studio-web/src/main/resources/skin/base.ftl
      • ./nuxeo-studio-web/src/main/resources/skin/studio.ftl

      // TODO add more URLs

      Outdated (invalid) URLs mean that user cannot see our resources, since they're not correctly provided.

      Fix Wrong Syntax

      The comment blocks are different among CSS, HTML, JavaScript. Using HTML comment block in JavaScript leads to potential UI rendering failure. Here's an example of wrong usage, in the embedded JavaScript of studio.ftl:

          <script type="text/javascript">
            <!-- Studio -->
            var _studio_hb_enabled = ${studio_hb_enabled};
            var _studio_hb_delay = ${studio_hb_delay};
            <!-- Studio Collab -->
            var _collab_enabled = ${collab_enabled};
            var _collab_url = ${collab_url};
            var _collab_hb_delay = ${collab_hb_delay};
            var _collab_hb_reconnect = ${collab_hb_reconnect};
          </script>
      

      The comment block should be changed to valid JS syntax.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m