Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

feat: global markdown template pages #1487

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

ytvnr
Copy link
Member

@ytvnr ytvnr commented Feb 17, 2021

@ytvnr ytvnr force-pushed the issues/4465-markdown-template-pages branch from 3fdf35b to 8edc732 Compare February 18, 2021 07:35
@gcusnieux gcusnieux self-requested a review February 22, 2021 14:57
Comment on lines +213 to +217
<div class="gv-page-info-banner" ng-hide="!$ctrl.page.content">
<ng-md-icon icon="info" class="gv-info"></ng-md-icon>
Selecting a template will override the current documentation.
</div>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make it ui-components ?
And you can use gv-icon instead of ng-md-icon

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -18,7 +18,8 @@
<div>
<div class="gv-page-draft-banner" ng-if="!$ctrl.page.published">
<ng-md-icon icon="warning" class="gv-warning"></ng-md-icon>
This page is not published yet and will not be visible to other users
{{$ctrl.isMarkdownTemplate() ? 'This page is not available for users yet' :
'This page is not published yet and will not be visible to other users' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's not better to move this in the controller to facilitate the merges

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree

}

/*
* Analytics
*/
analytics(request) {
var url = this.environmentURL + '/analytics?';
var url = this.Constants.env.baseURL + '/analytics?';
var keys = Object.keys(request);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could update the var with const or let

@gcusnieux
Copy link
Member

gcusnieux commented Feb 23, 2021

Also, we have a problem with the horizontal scrollbar

Capture d’écran 2021-02-23 à 09 04 37

Capture d’écran 2021-02-23 à 09 04 29

And we could make the form a bit more compact by using two columns for the small fields

@ytvnr
Copy link
Member Author

ytvnr commented Feb 24, 2021

horizontal issue is here : gravitee-io/issues#5119

@ytvnr ytvnr force-pushed the issues/4465-markdown-template-pages branch 2 times, most recently from 6e55f52 to cd72536 Compare February 24, 2021 14:59
@ytvnr ytvnr force-pushed the issues/4465-markdown-template-pages branch from cd72536 to 013310d Compare February 24, 2021 16:03
@gcusnieux gcusnieux merged commit 5021703 into master Feb 24, 2021
@gcusnieux gcusnieux deleted the issues/4465-markdown-template-pages branch February 24, 2021 17:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[management] Global markdown template pages
2 participants