Changeset 1611 for trunk


Ignore:
Timestamp:
01/08/16 10:23:29 (9 years ago)
Author:
nanardon
Message:

Add created to timeline

Location:
trunk/LATMOS-Accounts-Web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/Timeline.pm

    r1608 r1611  
    7878                date => DateTime->now->ymd('-'), 
    7979        }); 
     80        push(@{$var->{employments}{events}}, { 
     81                name => 'Created', 
     82                date => $ouser->get_attributes('create'), 
     83        }); 
    8084        if (my $expire = $ouser->get_attributes('expire')) { 
    8185            push(@{$var->{employments}{events}}, { 
  • trunk/LATMOS-Accounts-Web/root/static/js/timeline/timeframe.js

    r1607 r1611  
    3333                this.outerWidth = this.container.innerWidth(); 
    3434                this.outerHeight = 100; 
    35                 this.paddingX = 20; 
     35                this.paddingX = 40; 
    3636                this.paddingY = 20; 
    3737 
     
    275275                var label = $svg.text( 
    276276                        (startX + endX) / 2, 
    277                         this.height - this.options.textHeight - this.options.tickHeight + this.paddingY - 8, 
     277                        this.height + this.options.textHeight - this.options.tickHeight + this.paddingY + 8, 
    278278                        span.name, 
    279279                        { 
Note: See TracChangeset for help on using the changeset viewer.