Age | Commit message (Collapse) | Author |
|
listing the tickets. Give a message if a user has no tickets.
|
|
|
|
Just found out that render(@collection) returns nil for emtpy collections. So that is usefull for putting messages about the emtpy collection in an or clause.
|
|
partials have specific CSS for another use, so we will likely want to tweak this.
|
|
Conflicts:
users/test/functional/users_controller_test.rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This way we get syntax highlighting and so on.
|
|
validating email domain and displaying it as the placeholder
|
|
|
|
|
|
|
|
This even works client side. :)
|
|
|
|
|
|
|
|
|
|
using CouchRests user.email_aliases.build so the casted_by method is set in the alias
Used this to move the validations into the alias itself. This is where they belong and allows us to render the errors inline along the email field they belong to.
|
|
Actually that might not be the best idea.
Issue at hand was that invalid email aliases were getting displayed when rendering the edit form again. We probably want to solve this different.
|
|
still needs a bit of refactoring in the view
|
|
|
|
|
|
|
|
|
|
|
|
Conflicts:
users/test/unit/user_test.rb
|
|
|
|
|
|
that's what it does. Changed all tests to use it instead of the attributes method
|
|
This allows us to reuse add_email from email_aliases_attributes=
|
|
|
|
nor aliases that are the same as the original email for that matter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* unit tests draft
* controller draft
|
|
Just a very simple start for now.
Do we want to use the api for the secure remote password auth from js?
|
|
Conflicts:
app/views/layouts/application.html.haml
help/app/controllers/tickets_controller.rb
help/test/functional/tickets_controller_test.rb
users/test/support/stub_record_helper.rb
|