Skip to content

Commit dea5cfc

Browse files
authored
Merge pull request #529 from brmodeloweb/show-models-with-public-link
Add shared status to models on Models list
2 parents b590a27 + a6d10ab commit dea5cfc

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

app/angular/workspace/workspace.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ <h2 class="h2 pull-left">{{ 'Models' | translate }}</h2>
6565
<icon-logic ng-if="model.type === 'logic'" aria-hidden="true"></icon-logic>
6666
<span>{{model.typeName}}</span>
6767
</td>
68-
<td ng-click="$ctrl.openModel(model)">{{model.name}}</td>
68+
<td ng-click="$ctrl.openModel(model)">
69+
<i ng-if="model.shareOptions.active" title="{{ 'Public link available' | translate }}" class="fa fa-share-alt share-status"></i>
70+
<span>{{model.name}}</span>
71+
</td>
6972
<td ng-click="$ctrl.openModel(model)">{{model.authorName}}</td>
7073
<td ng-click="$ctrl.openModel(model)">{{model.created | date:'dd/MM/yyyy'}}</td>
7174
<td class="actions-cell">

app/i18n/languages/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export default {
167167
'Still, the server and database to keep the project live cost money.': 'Still, the server and database to keep the project live cost money.',
168168
'If you can, please considere a one time only or even monthly contribution via Github Sponsor.': 'If you can, please considere a one time only or even monthly contribution via Github Sponsor.',
169169
'Go to Github Sponsors': 'Go to Github Sponsors',
170+
'Public link available': 'Public link available',
170171
'Share model':'Share model',
171172
'Create public link':'Create public link',
172173
'Enable import': 'Enable import',

app/i18n/languages/pt_BR.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export default {
167167
'If you can, please considere a one time only or even monthly contribution via Github Sponsor.': 'Se puder, considere uma contribuição única ou mesmo mensal por meio do Github Sponsors.',
168168
'Go to Github Sponsors': 'Ir para o Github Sponsors',
169169
'Share model': 'Compartilhar modelo',
170+
'Public link available': 'Link público disponível',
170171
'Create public link': 'Criar link público',
171172
'Enable import': 'Autorizar importação',
172173
'Allow users to make copies using the public link': 'Permitir que os usuários façam cópias usando o link público',

app/sass/modelWorkspace.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,13 @@
4646
.modelWorkspace .workspace-header .page-header {
4747
margin-top: 10px;
4848
border-bottom: 1px solid var(--border-default);
49-
}
49+
}
50+
51+
////////////////////////////////////////////////////////////////////////////////
52+
// .share-status
53+
////////////////////////////////////////////////////////////////////////////////
54+
.share-status {
55+
color: var(--gray-70);
56+
font-size: 1.2rem;
57+
margin-right: 4px;
58+
}

0 commit comments

Comments
 (0)