From f14f462eaf8dcf272db54cd513bf7ffe7dc6a6e3 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 21 Mar 2016 18:26:47 +0100 Subject: Adding Turbolinks, adding status posting form on homepage --- app/views/home/index.html.haml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'app/views/home/index.html.haml') diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index a3213a685..70f91d4a3 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -1,3 +1,11 @@ += simple_form_for Status.new, url: statuses_path, method: :post do |f| + = f.input :text, required: true, autofocus: true, label: false, placeholder: 'What are you up to?' + + .form-actions + = f.button :submit, 'Post update' + +%hr/ + %h3 OAuth2 %p All API methods require a valid access token. @@ -83,6 +91,15 @@ %samp /api/accounts/:id/unfollow .description Unfollows target account from the user's account. Returns the target account. + %li + .address + %samp.method GET + %samp /api/accounts/lookup + .options + Options: + %samp usernames + .description + Returns accounts for a comma-separated list of usernames %h3 Follows %ul.api-descriptions -- cgit