You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Michael Miller (JIRA)" <ji...@apache.org> on 2017/12/19 18:57:00 UTC

[jira] [Resolved] (ACCUMULO-4764) Move static html from JS to templates

     [ https://issues.apache.org/jira/browse/ACCUMULO-4764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Miller resolved ACCUMULO-4764.
--------------------------------------
    Resolution: Fixed

> Move static html from JS to templates
> -------------------------------------
>
>                 Key: ACCUMULO-4764
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4764
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: monitor
>    Affects Versions: 2.0.0
>            Reporter: Michael Miller
>            Assignee: Michael Miller
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The new Monitor has too much code embedded in the Javascript.  A lot of it is just static html code that should be created in the freemarker templates before the JS is loaded.  For example, all of the table column descriptions used for tool tips are loaded into [one massive JS Arrary|https://github.com/apache/accumulo/blob/master/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/global.js].  Moving the static code to the templates will help greatly with maintenance, specifically keeping external Javascript libraries up to date.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)