Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
knowledgebase-front
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
Knowledge Base
knowledgebase-front
Commits
6dc268bd
Commit
6dc268bd
authored
5 years ago
by
Benoit Alessandroni
Browse files
Options
Downloads
Patches
Plain Diff
Proper entrepreneur redirect
parent
41f310f4
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Feature/editing a resource
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/includes/entrepreneur/create.pug
+5
-0
5 additions, 0 deletions
src/includes/entrepreneur/create.pug
src/includes/splash.pug
+1
-1
1 addition, 1 deletion
src/includes/splash.pug
src/index.pug
+2
-4
2 additions, 4 deletions
src/index.pug
with
8 additions
and
5 deletions
src/includes/entrepreneur/create.pug
+
5
−
0
View file @
6dc268bd
include ../components/widgets
h2 Create an entrepreneur account
h2 Create an entrepreneur account
sib-form(
sib-form(
...
@@ -20,6 +22,9 @@ sib-form(
...
@@ -20,6 +22,9 @@ sib-form(
multiple-organisation='sib-multiple-select'
multiple-organisation='sib-multiple-select'
widget-organisation='sib-form-auto-completion'
widget-organisation='sib-form-auto-completion'
widget-user.password='cs-form-password'
widget-user.password_confirmation='cs-form-password'
submit-button="CREATE AN ACCOUNT"
submit-button="CREATE AN ACCOUNT"
)
)
This diff is collapsed.
Click to expand it.
src/includes/splash.pug
+
1
−
1
View file @
6dc268bd
...
@@ -2,7 +2,7 @@ sib-router
...
@@ -2,7 +2,7 @@ sib-router
sib-route(name='mentor-login')
sib-route(name='mentor-login')
sib-route(name='entrepreneur-login')
sib-route(name='entrepreneur-login')
h2 Welcome to
y
our international index of resources for cooperative mentors and entrepreneurs
h2 Welcome to our international index of resources for cooperative mentors and entrepreneurs
sib-link(next='mentor-login')
sib-link(next='mentor-login')
div I am a mentor
div I am a mentor
...
...
This diff is collapsed.
Click to expand it.
src/index.pug
+
2
−
4
View file @
6dc268bd
...
@@ -7,13 +7,13 @@ html
...
@@ -7,13 +7,13 @@ html
sib-route(name='mentor-new-account')
sib-route(name='mentor-new-account')
sib-route(name='entrepreneur-new-account')
sib-route(name='entrepreneur-new-account')
sib-route(name='mentor-dashboard')
sib-route(name='mentor-dashboard')
sib-route(name='entrepreneur-
search-page
')
sib-route(name='entrepreneur-
dashboard
')
body
body
#mentor-dashboard(hidden).no-sidebar
#mentor-dashboard(hidden).no-sidebar
include includes/mentor/dashboard.pug
include includes/mentor/dashboard.pug
#entrepreneur-
search-page
(hidden).no-sidebar
#entrepreneur-
dashboard
(hidden).no-sidebar
include includes/entrepreneur/dashboard.pug
include includes/entrepreneur/dashboard.pug
#splash(hidden).no-sidebar
#splash(hidden).no-sidebar
...
@@ -53,11 +53,9 @@ script(type='module').
...
@@ -53,11 +53,9 @@ script(type='module').
let idToken = await sibAuth.getUserIdToken();
let idToken = await sibAuth.getUserIdToken();
if ( !user ) {
if ( !user ) {
console.log("You're not logged in");
return;
return;
}
}
user = await store.get(user);
user = await store.get(user);
console.log('Retrieved user', user);
if (user && user.mentor_profile) {
if (user && user.mentor_profile) {
window.dispatchEvent(
window.dispatchEvent(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment