<commit_before>/**
 * Assignment overview (overview of an assignment).
 */
Ext.define('subjectadmin.view.assignment.Overview' ,{
    extend: 'Ext.panel.Panel',
    alias: 'widget.assignmentoverview',
    cls: 'assignmentoverview sidebarlayout',
    requires: [
        'Ext.layout.container.Column',
        'themebase.EditableSidebarBox',
        'subjectadmin.view.assignment.EditPublishingTimeWidget',
        'subjectadmin.view.assignment.EditAnonymousWidget',
        'subjectadmin.view.ActionList'
    ],


    /**
     * @cfg {String} url (required)
     */

    /**
     * @cfg {String} subject_shortname (required)
     */

    /**
     * @cfg {String} period_shortname (required)
     */

    /**
     * @cfg {String} assignment_shortname (required)
     */


    initComponent: function() {
        var assignment = Ext.String.format('{0}.{1}.{2}',
            this.subject_shortname, this.period_shortname,
            this.assignment_shortname
        );
        var deleteLabel = Ext.create('Ext.XTemplate', dtranslate('themebase.delete_something')).apply({
            what: assignment
        });
        var renameLabel = Ext.create('Ext.XTemplate', dtranslate('themebase.rename_something')).apply({
            what: assignment
        });


        Ext.apply(this, {
            layout: 'column',
            frame: false,
            border: 0,
            bodyPadding: 40,
            autoScroll: true,

            items: [{
                xtype: 'container',
                columnWidth: .65,
                items: [{
                    xtype: 'panel',
                    itemId: 'actions',
                    ui: 'inset-header-strong-panel',
                    items: {
                        xtype: 'actionlist',
                        links: [{
                            url: Ext.String.format('{0}@@manage-students', this.url),
                            text: dtranslate('subjectadmin.assignment.manage_students')
                        }, {
                            url: Ext.String.format('{0}@@manage-deadlines', this.url),
                            text: dtranslate('subjectadmin.assignment.manage_deadlines')
                        }]
                    }
                }, {
                    xtype: 'panel',
                    ui: 'transparentpanel-overflowvisible',
                    margin: {top: 40},
                    layout: 'column',
                    items: [{
                        xtype: 'panel',
                        ui: 'inset-header-panel',
                        title: Ext.String.ellipsis(dtranslate('subjectadmin.assignment.waitingforfeedback'), 25),
                        columnWidth: .5,
                        margin: {right: 20},
                        html: 'TODO'
                    }, {
                        xtype: 'panel',
                        ui: 'inset-header-panel',
                        columnWidth: .5,
                        margin: {left: 20},
                        title: Ext.String.ellipsis(dtranslate('subjectadmin.assignment.upcoming_deadlines'), 25),
                        html: 'TODO'
                    }]
                }]
            }, {
                xtype: 'container',
                border: false,
                columnWidth: .35,
                margin: {left: 40},
                defaults: {
                    margin: {top: 20},
                },
                items: [{
                    xtype: 'editablesidebarbox',
                    itemId: 'gradeeditor',
                    margin: {top: 0},
                    title: dtranslate('subjectadmin.assignment.gradeeditor')
                }, {
                    xtype: 'editpublishingtime-widget',
                    disabled: true
                }, {
                    xtype: 'editanonymous-widget',
                    disabled: true
                }]<commit_msg>apps.subjectadmin...assignment.Overview: Mockup links.<commit_after>/**
 * Assignment overview (overview of an assignment).
 */
Ext.define('subjectadmin.view.assignment.Overview' ,{
    extend: 'Ext.panel.Panel',
    alias: 'widget.assignmentoverview',
    cls: 'assignmentoverview sidebarlayout',
    requires: [
        'Ext.layout.container.Column',
        'themebase.EditableSidebarBox',
        'subjectadmin.view.assignment.EditPublishingTimeWidget',
        'subjectadmin.view.assignment.EditAnonymousWidget',
        'subjectadmin.view.ActionList'
    ],


    /**
     * @cfg {String} url (required)
     */

    /**
     * @cfg {String} subject_shortname (required)
     */

    /**
     * @cfg {String} period_shortname (required)
     */

    /**
     * @cfg {String} assignment_shortname (required)
     */


    initComponent: function() {
        var assignment = Ext.String.format('{0}.{1}.{2}',
            this.subject_shortname, this.period_shortname,
            this.assignment_shortname
        );
        var deleteLabel = Ext.create('Ext.XTemplate', dtranslate('themebase.delete_something')).apply({
            what: assignment
        });
        var renameLabel = Ext.create('Ext.XTemplate', dtranslate('themebase.rename_something')).apply({
            what: assignment
        });


        Ext.apply(this, {
            layout: 'column',
            frame: false,
            border: 0,
            bodyPadding: 40,
            autoScroll: true,

            items: [{
                xtype: 'container',
                columnWidth: .65,
                items: [{
                    xtype: 'panel',
                    itemId: 'actions',
                    ui: 'inset-header-strong-panel',
                    items: {
                        xtype: 'actionlist',
                        links: [{
                            url: Ext.String.format('{0}@@manage-students', this.url),
                            text: dtranslate('subjectadmin.assignment.manage_students')
                        }, {
                            url: Ext.String.format('{0}@@manage-deadlines', this.url),
                            text: dtranslate('subjectadmin.assignment.manage_deadlines')
                        }]
                    }
                }, {
                    xtype: 'panel',
                    ui: 'transparentpanel-overflowvisible',
                    margin: {top: 40},
                    layout: 'column',
                    items: [{
                        xtype: 'panel',
                        ui: 'inset-header-panel',
                        margin: {right: 20},
                        columnWidth: .5,
                        title: Ext.String.ellipsis(dtranslate('subjectadmin.assignment.upcoming_deadlines'), 25),
                        html: 'TODO. See this <a href="http://heim.ifi.uio.no/espeak/devilry-figures/assignmentadmin.png" target="_blank">mockup image</a>.'
                    }, {
                        xtype: 'panel',
                        ui: 'inset-header-panel',
                        title: Ext.String.ellipsis(dtranslate('subjectadmin.assignment.waitingforfeedback'), 25),
                        columnWidth: .5,
                        margin: {left: 20},
                        html: 'TODO. See this <a href="http://heim.ifi.uio.no/espeak/devilry-figures/assignmentadmin.png" target="_blank">mockup image</a>.'
                    }]
                }]
            }, {
                xtype: 'container',
                border: false,
                columnWidth: .35,
                margin: {left: 40},
                defaults: {
                    margin: {top: 20},
                },
                items: [{
                    xtype: 'editablesidebarbox',
                    itemId: 'gradeeditor',
                    margin: {top: 0},
                    title: dtranslate('subjectadmin.assignment.gradeeditor')
                }, {
                    xtype: 'editpublishingtime-widget',
                    disabled: true
                }, {
                    xtype: 'editanonymous-widget',
                    disabled: true
                }]
{'fraction_non_alphanumeric': 0.11822598729288651, 'fraction_numerical': 0.007225613554254391, 'mean_word_length': 1.238081962642877, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '142228', 'n_tokens_mistral': 2131, 'n_tokens_neox': 1942, 'n_words': 340}