Change v1 project link to button which opens import modal

This commit is contained in:
Alasdair Smith 2017-11-27 13:46:30 +00:00
parent cbba7c38df
commit 0e11668a61
3 changed files with 16 additions and 5 deletions

View file

@ -5,11 +5,10 @@
tooltip-append-to-body="true"
)
span
if settings.overleaf && settings.overleaf.host
a.projectName(
href=settings.overleaf.host + "/{{project.id}}"
stop-propagation="click"
) {{project.name}}
button.btn.btn-link.v1ProjectName(
ng-click="openV1ImportModal(project)"
stop-propagation="click"
) {{project.name}}
.col-xs-2
span.owner {{ownerName()}}

View file

@ -442,6 +442,14 @@ define [
path = "/project/#{selected_project_ids[0]}/download/zip"
window.location = path
$scope.openV1ImportModal = (project) ->
$modal.open(
templateUrl: 'v1ImportModalTemplate'
controller: 'UploadProjectModalController'
resolve:
project: () -> project
)
if storedUIOpts?.filter?
if storedUIOpts.filter == "tag" and storedUIOpts.selectedTagId?

View file

@ -332,6 +332,10 @@ ul.project-list {
.projectName {
margin-right: @line-height-computed / 4;
}
.v1ProjectName {
margin-right: @line-height-computed / 4;
padding: 0;
}
.tag-label {
margin-left: @line-height-computed / 4;