versioning.tpl 1.91 KB
Newer Older
1 2
{include file="header.tpl"}

3 4 5 6 7 8 9
<div class="pageactions" id="toolbar-buttons">
    <div class="btn-group-vertical in-editor">
        <a class="btn btn-secondary editviews" href="{$viewurl}" title="{str tag=displayview section=view}">
            <span class="icon icon-lg icon-tv" aria-hidden="true" role="presentation"></span>
            <span class="btn-title sr-only">{str tag=displayview section=view}</span>
        </a>
    </div>
10
</div>
11

12 13 14
<div class="grouppageswrap view-container">
    {$timelineform|safe}
{if $views}
15
    <div class="jtline"><span class="icon icon-spinner icon-pulse"></span> {str tag=loadingtimelinecontent section=view arg1=$viewtitle}</div>
16 17 18 19 20 21
    <script type="application/javascript">
    $(function () {
        var jtLine = $('.jtline').jTLine({
            callType: 'ajax',
            url:'versioning.json.php',
            eventsMinDistance: 100,
22 23 24
            distanceMode: 'fixDistance', // predefinedDistance , fixDistance
            fixDistanceValue: 2,
            firstPointMargin: 1.5,
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
            params: {literal}{{/literal}
              'sesskey': config.sesskey,
              {if $fromdate} 'fromdate' : '{$fromdate}', {/if}
              {if $todate}'todate' : '{$todate}', {/if}
              'view' : '{$view}',
              {literal}}{/literal},
            map: {
                "dataRoot": "/",
                "title": "taskTitle",
                "subTitle": "taskSubTitle",
                "dateValue": "assignDate",
                "idValue": "assignID",
                "pointCnt": "taskShortDate",
                "bodyCnt": "taskDetails"
            },
            formatTitle: function (title, obj) { return '<h3>' + title + '</h3>'; },
            formatSubTitle: function (subTitle, obj) { return '<div class="metadata">' + subTitle + '</div>'; },
            formatBodyContent: function (bodyCnt, obj) { return bodyCnt;}
        });
    });
    </script>
{/if}
</div>
48

49
{include file="footer.tpl"}