mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
added links to cards (actual links and badges don't work)
This commit is contained in:
@@ -129,6 +129,7 @@ table, tbody {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.List-header {
|
.List-header {
|
||||||
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
}
|
}
|
||||||
@@ -145,6 +146,7 @@ table, tbody {
|
|||||||
height: 14px;
|
height: 14px;
|
||||||
margin: 3px 0;
|
margin: 3px 0;
|
||||||
background-color: @list-title-badge;
|
background-color: @list-title-badge;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.List-titleText {
|
.List-titleText {
|
||||||
|
|||||||
@@ -28,6 +28,31 @@ export function OrganizationsList($stateParams, $scope, $rootScope, $location,
|
|||||||
val.isActiveCard = true;
|
val.isActiveCard = true;
|
||||||
}
|
}
|
||||||
val.description = card.description || undefined;
|
val.description = card.description || undefined;
|
||||||
|
val.links = [];
|
||||||
|
val.links.push({
|
||||||
|
href: card.related.users,
|
||||||
|
name: "USERS"
|
||||||
|
});
|
||||||
|
val.links.push({
|
||||||
|
href: card.related.teams,
|
||||||
|
name: "TEAMS"
|
||||||
|
});
|
||||||
|
val.links.push({
|
||||||
|
href: card.related.inventories,
|
||||||
|
name: "INVENTORIES"
|
||||||
|
});
|
||||||
|
val.links.push({
|
||||||
|
href: card.related.projects,
|
||||||
|
name: "PROJECTS"
|
||||||
|
});
|
||||||
|
val.links.push({
|
||||||
|
href: card.related.job_templates,
|
||||||
|
name: "JOB TEMPLATES"
|
||||||
|
});
|
||||||
|
val.links.push({
|
||||||
|
href: card.related.admins,
|
||||||
|
name: "ADMINS"
|
||||||
|
});
|
||||||
return val;
|
return val;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
.OrgCards-card {
|
.OrgCards-card {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
padding-bottom: 0px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: 1px solid #e8e8e8;
|
border: 1px solid #e8e8e8;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -51,12 +52,32 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.OrgCards-description {
|
.OrgCards-description {
|
||||||
margin-bottom: 0px;
|
margin-bottom: 20px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.OrgCards-links {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.OrgCards-link {
|
||||||
|
flex: initial;
|
||||||
|
width: ~"calc(50% - 20px)";
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.OrgCards-linkBadge {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 1179px) {
|
@media (min-width: 1179px) {
|
||||||
.OrgCards-card {
|
.OrgCards-card {
|
||||||
width: ~"calc(25% - 15px)";
|
width: ~"calc(25% - 15px)";
|
||||||
|
|||||||
@@ -42,6 +42,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="OrgCards-description">{{ card.description || "Place organization description here" }}</p>
|
<p class="OrgCards-description">{{ card.description || "Place organization description here" }}</p>
|
||||||
|
<div class="OrgCards-links">
|
||||||
|
<div class="OrgCards-link" ng-repeat="link in card.links">
|
||||||
|
<span class="badge List-titleBadge
|
||||||
|
OrgCards-linkBadge">
|
||||||
|
0
|
||||||
|
</span>
|
||||||
|
<a class="OrgCards-linkName"
|
||||||
|
ng-href="{{ link.href }}">
|
||||||
|
{{ link.name }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user