mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix docs route to include the user locale
- Move Messaging_{locale}.md files to static/help
This commit is contained in:
@@ -1 +0,0 @@
|
||||
../../../doc/help/Messaging.md
|
||||
47
web/static/help/Messaging_en.md
Normal file
47
web/static/help/Messaging_en.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# Messaging
|
||||
|
||||
### Writing Messages
|
||||
|
||||
You can write messages using the input box with the text "Write a message..." at the bottom of Mattermost.
|
||||
|
||||
Press **ENTER** to send a message. Use **Shift+ENTER** to create a new line without sending a message.
|
||||
|
||||
### Formatting Messages
|
||||
|
||||
Mattermost messages are formatted using a standard called "markdown". Here are examples:
|
||||
|
||||
| Text Entered | How it appears |
|
||||
|:---------------|:---------------|
|
||||
|`**bold**`| **bold** |
|
||||
| `_italic_`|_italic_|
|
||||
|`[hyperlink](http://mattermost.org)`|[hyperlink](http://mattermost.org)|
|
||||
|``||
|
||||
|`:smile:` `:sheep:` `:alien:`|:smile: :sheep: :alien:|
|
||||
|
||||
Emojis provided free from [Emoji One](http://emojione.com/). Check out a full list of Emojis [here](http://emoji.codes/).
|
||||
|
||||
|
||||
### Mentioning Teammates
|
||||
|
||||
You can mention a teammate by using the `@` symbol plus their username to send them a special notification to draw their attention.
|
||||
|
||||
For example, you might write:
|
||||
|
||||
```
|
||||
@alice how did your interview go with the new candidate?
|
||||
```
|
||||
|
||||
Which sends a special mention notification to **alice** to check your message.
|
||||
|
||||
To mention a teammate, press `@` and you should see a list of team members who can be messaged. You can either type their username or use the **Up** and **Down** arrow keys and then **ENTER** to select them to be mentioned.
|
||||
|
||||
You can configure how you'd like to be alerted about mentions of your username, your first name, your nickname, or other keywords from **Account Settings** > **Notifications** and you can set channel-specific preferences from **[Channel Name]** > **Notification Preferences**
|
||||
|
||||
### Messages Dropdown Menu
|
||||
|
||||
To get to the Messages Dropdown Menu, hover over a message and click on the [...] menu. This shows a dropdown list containing additional actions you can perform on a message:
|
||||
|
||||
- **Reply:** Opens up the sidebar so you can reply to a message in a comment thread.
|
||||
- **Permalink:** Creates a link to the message. Sharing this link with other users in the channel lets them view the linked message in the Message Archives.
|
||||
- **Delete:** Deletes the message so it is no longer visible. Team Administrators and System Administrators can also delete another user's message.
|
||||
- **Edit:** Lets you edit your own message.
|
||||
@@ -1 +0,0 @@
|
||||
../../../doc/help/Messaging_es.md
|
||||
37
web/static/help/Messaging_es.md
Normal file
37
web/static/help/Messaging_es.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Mensajes
|
||||
|
||||
## Escribiendo Mensajes
|
||||
|
||||
Puedes escribir mensajes utilizando el cuadro de texto que dice "Escribe un mensaje..." al final de Mattermost.
|
||||
|
||||
Presiona **RETORNO** para enviar un mensaje. Utiliza **Shift+RETORNO** para crear una nueva linea sin enviar el mensaje.
|
||||
|
||||
## Darle formato a los Mensajes
|
||||
|
||||
Los mensajes de Mattermost se les asigna formato utilizando un estándard que se llama "markdown". Aquí algunos ejemplos:
|
||||
|
||||
| Texto escrito | Como aparece |
|
||||
|:--------------|:-------------|
|
||||
|`**negrita**`| **negrita** |
|
||||
| `_italica_`|_italica_|
|
||||
|`[hipervinculo](http://mattermost.org)`|[hipervinculo](http://mattermost.org)|
|
||||
|``||
|
||||
|`:smile:` `:sheep:` `:alien:`|:smile: :sheep: :alien:|
|
||||
|
||||
Revisa la lista completa de Emojis [aquí](http://www.emoji-cheat-sheet.com/).
|
||||
|
||||
## Mencionando a compañeros
|
||||
|
||||
Puedes mencionar a un compañero al utilizar el simbolo `@` más el nombre de usuario para enviarles una notificación especial que llame su atención.
|
||||
|
||||
Por ejemplo, podrías escribir:
|
||||
|
||||
```
|
||||
@alicia como te fue con la entrevista del nuevo candidato?
|
||||
```
|
||||
|
||||
Lo cual enviará una notificación especial de mención a **alicia** para que lea tu mensaje.
|
||||
|
||||
Para mencionar un compañero, presiona `@` y podrás ver una lista de los miembros de equipo a quienes puedes mandarles un mensaje. Puedes escribir su nombre de usuario o utilizar las flechas de **Arriba** y **Abajo** y presionar **RETORNO** para seleccionarlos.
|
||||
|
||||
Puedes configurar como te gustaría ser notificado cuando alguien te menciona por nombre de usuario, tu primer nombre, sobrenombre o cualquier otra palabra clave en **Configurar Cuenta** > **Notificaciones** y puedes asignar preferencias especificas para un canal en **[Nombre del Canal]** > **Preferencias de Notificación**
|
||||
@@ -612,8 +612,17 @@ func docs(c *api.Context, w http.ResponseWriter, r *http.Request) {
|
||||
params := mux.Vars(r)
|
||||
doc := params["doc"]
|
||||
|
||||
var user *model.User
|
||||
if len(c.Session.UserId) != 0 {
|
||||
userChan := api.Srv.Store.User().Get(c.Session.UserId)
|
||||
if userChan := <-userChan; userChan.Err == nil {
|
||||
user = userChan.Data.(*model.User)
|
||||
}
|
||||
}
|
||||
|
||||
page := NewHtmlTemplatePage("docs", c.T("web.doc.title"), c.Locale)
|
||||
page.Props["Site"] = doc
|
||||
page.User = user
|
||||
page.Render(c, w)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user