Commit graph

5 commits

Author SHA1 Message Date
dineshpanda
20111b045d Avoid calling freeze on already frozen strings in app/models 2019-09-01 01:27:00 +05:30
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
Bob Van Landuyt
f1d3ea63cf Show the status of a user in interactions
The status is shown for
- The author of a commit when viewing a commit
- Notes on a commit (regular/diff)
- The user that triggered a pipeline when viewing a pipeline
- The author of a merge request when viewing a merge request
- The author of notes on a merge request (regular/diff)
- The author of an issue when viewing an issue
- The author of notes on an issue
- The author of a snippet when viewing a snippet
- The author of notes on a snippet
- A user's profile page
- The list of members of a group/user
2018-07-30 15:01:26 +02:00
Bob Van Landuyt
b4c4b48a8c Allow users to set a status
This can be done trough the API for the current user, or on the
profile page.
2018-07-30 15:01:26 +02:00
Bob Van Landuyt
812bfb158b Add the UserStatus model
This model will hold the status of a user, including these fields:

- emoji: always present, with a default value
- user: always present, foreign key to user
- message: optional, maximum length of 100

The table also stores

- cached_markdown_version
- message_html

For rendering markdown in the `message` field.
2018-07-25 15:12:41 +02:00