Merge pull request #87 from dod-ccpo/display-username
Display the current user's full name in the header
This commit is contained in:
13
README.md
13
README.md
@@ -58,6 +58,19 @@ To start the app locally in the foreground and watch for changes:
|
|||||||
|
|
||||||
script/dev_server
|
script/dev_server
|
||||||
|
|
||||||
|
### Users
|
||||||
|
|
||||||
|
There are currently six mock users for development:
|
||||||
|
|
||||||
|
- Sam (a CCPO)
|
||||||
|
- Amanda
|
||||||
|
- Brandon
|
||||||
|
- Christina
|
||||||
|
- Dominick
|
||||||
|
- Erica
|
||||||
|
|
||||||
|
To log in as one of them, navigate to `/login-dev?username=<lowercase name>`. For example `/login-dev?username=amanda`.
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
To run lint, static analysis, and unit tests:
|
To run lint, static analysis, and unit tests:
|
||||||
|
@@ -6,7 +6,7 @@ _DEV_USERS = {
|
|||||||
"sam": {
|
"sam": {
|
||||||
"id": "164497f6-c1ea-4f42-a5ef-101da278c012",
|
"id": "164497f6-c1ea-4f42-a5ef-101da278c012",
|
||||||
"first_name": "Sam",
|
"first_name": "Sam",
|
||||||
"last_name": "CCPO",
|
"last_name": "Seeceepio",
|
||||||
"atat_role": "ccpo"
|
"atat_role": "ccpo"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="/" class="topbar__link">
|
<a href="/" class="topbar__link">
|
||||||
<span class="topbar__link-label">Sam Seeceepio</span>
|
<span class="topbar__link-label">{{ current_user["first_name"] + " " + current_user["last_name"] }}</span>
|
||||||
{% module Icon('avatar', classes='topbar__link-icon') %}
|
{% module Icon('avatar', classes='topbar__link-icon') %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user