projectsidebar.vm

38 lines | 1.659 kB Blame History Raw Download
#*
 * Copyright 2012 LinkedIn Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*#

          <div class="well" id="project-sidebar">
            <h3>$project.name</h3>
            <p class="editable" id="project-description">$esc.html($project.description)</p>
            <div id="project-description-form" class="editable-form">
              <div class="input-group">
                <input type="text" class="form-control input-sm" id="project-description-edit" placeholder="Project description">
                <span class="input-group-btn">
                  <button class="btn btn-primary btn-sm" type="button" id="project-description-btn">Save</button>
                </span>
              </div>
            </div>
            <hr>
            <p><strong>Created on</strong> $utils.formatDate($project.createTimestamp)</p>
            <p><strong>Last modified by</strong> $utils.formatDate($project.lastModifiedTimestamp)</p>
            <p><strong>Modified by</strong> $project.lastModifiedUser</p>

            <hr>

            <p><strong>Project admins:</strong> $admins</p>
            <p><strong>Your Permissions:</strong> $userpermission.toString()</p>
          </div>