Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block out Menus #56

Merged
merged 2 commits into from
Sep 6, 2018
Merged

Conversation

tabascq
Copy link
Contributor

@tabascq tabascq commented Sep 5, 2018

Laying down some basic menu structure for inspiration. Open to change,
just helping to define the rough shape of things.

Linked to Issue #53.

Laying down some basic menu structure for inspiration. Open to change,
just helping to define the rough shape of things.
…ering out menu items based on event state (active/over), but for now I am leaving everything in for clarity.
</head>
<body>
@{
var Event = ViewData["Event"] as ServerCore.DataModel.Event;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to use ViewData in layouts or is there some way to reference the model?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The book I have says ViewData is needed for things in the shared file. With more engineering I am sure there is something more strongly typed but I am not sure it is worth it. I do have plans to automatically fill in the Event via routing and other things, which will help somewhat.


@if (Event != null)
{
<li class="dropdown">
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we indent from the curly brace @asyasky?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes please. :) An automatic style sheet is on my todo list, but in the mean time ctrl+k+d fixes up most things (not sure about cshtml, but it does in cs for sure).

Copy link
Contributor

@morganbr morganbr left a comment

Choose a reason for hiding this comment

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

Looks like a good start. For future significant UI changes, a screenshot might be nice to make it a bit easier to review (you can just drag/paste them into the description)

@tabascq tabascq merged commit 49db3b3 into PuzzleServer:master Sep 6, 2018
@tabascq
Copy link
Contributor Author

tabascq commented Sep 6, 2018

Screenshots are a bit of a chore with dropdowns but in general I get your point :-)

@tabascq
Copy link
Contributor Author

tabascq commented Sep 6, 2018

And thanks for the review!

@tabascq tabascq deleted the dev/kennyy/BlockOutMenus branch September 6, 2018 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants