OSDN Git Service

Update Markdown example to use username
authorChris Waguespack <cjwprostar@hotmail.com>
Wed, 23 Jan 2013 15:58:38 +0000 (09:58 -0600)
committerChris Waguespack <cjwprostar@hotmail.com>
Wed, 23 Jan 2013 15:58:38 +0000 (09:58 -0600)
Update the Markdown example in the Help pages to use username instead of user.

app/views/help/markdown.html.haml

index 46bcd89..92c1e49 100644 (file)
       - if @project = current_user.authorized_projects.first
         - if issue = @project.issues.first
           %p For example in your #{link_to @project.name, project_path(@project)} project, writing:
-          %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
+          %pre= "This is related to ##{issue.id}. @#{current_user.username} is working on solving it."
           %p becomes:
-          = markdown "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
+          = markdown "This is related to ##{issue.id}. @#{current_user.username} is working on solving it."
         - @project = nil # Prevent this from bubbling up to page title