allow full markdown in about page

This commit is contained in:
jomo
2014-07-01 00:04:12 +02:00
parent fded24aea7
commit e7f0aaa651
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@
<tr> <tr>
<td>About you</td> <td>About you</td>
<td> <td>
<%= render partial: "md_editor", locals: {name: "user[about]", content: @user.about, mini: true, options: {disabled: !can_edit?, placeholder: "Tell us something about you ..."}} %> <%= render partial: "md_editor", locals: {name: "user[about]", content: @user.about, mini: false, options: {disabled: !can_edit?, placeholder: "Tell us something about you ..."}} %>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@@ -86,5 +86,5 @@
</tbody> </tbody>
</table> </table>
About:<br> About:<br>
<%= @user.about.blank? ? "<span class=\"no-about\">nothing</span>".html_safe : render_mini_md(@user.about).html_safe %> <%= @user.about.blank? ? "<span class=\"no-about\">nothing</span>".html_safe : render_md(@user.about).html_safe %>
</div> </div>