Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Milan
diaspora
Commits
0965b45f
Commit
0965b45f
authored
Nov 22, 2010
by
maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing getting started 2
parent
ffedd9fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
35 deletions
+13
-35
app/controllers/aspects_controller.rb
app/controllers/aspects_controller.rb
+6
-2
app/views/requests/_manage_aspect_contacts.haml
app/views/requests/_manage_aspect_contacts.haml
+4
-28
app/views/users/getting_started.html.haml
app/views/users/getting_started.html.haml
+1
-1
app/views/users/getting_started/_step_2.html.haml
app/views/users/getting_started/_step_2.html.haml
+1
-3
config/locales/diaspora/en.yml
config/locales/diaspora/en.yml
+1
-1
No files found.
app/controllers/aspects_controller.rb
View file @
0965b45f
...
...
@@ -20,8 +20,12 @@ class AspectsController < ApplicationController
def
create
@aspect
=
current_user
.
aspects
.
create
(
params
[
:aspect
])
if
@aspect
.
valid?
flash
[
:notice
]
=
I18n
.
t
(
'aspects.create.success'
)
respond_with
@aspect
flash
[
:notice
]
=
I18n
.
t
(
'aspects.create.success'
,
:name
=>
@aspect
.
name
)
if
current_user
.
getting_started
redirect_to
:back
else
respond_with
@aspect
end
else
flash
[
:error
]
=
I18n
.
t
(
'aspects.create.failure'
)
redirect_to
:back
...
...
app/views/requests/_manage_aspect_contacts.haml
View file @
0965b45f
...
...
@@ -11,32 +11,8 @@
%h3
=
t
(
'.existing'
)
=
render
'shared/contact_list'
,
:aspect
=>
aspect
,
:contacts
=>
@contacts
,
:manage
=>
defined?
(
manage
)
.span-7.last
%h3
=
t
(
'aspects.manage.add_a_new_contact'
)
=
form_tag
(
person_by_handle_path
,
:id
=>
"new_request_to_
#{
aspect
.
id
}
"
,
:class
=>
"webfinger_form"
,
:remote
=>
true
)
do
=
t
(
'.enter_a_diaspora_username'
)
%br
%i
=
t
'.your_diaspora_username_is'
,
:diaspora_handle
=>
current_user
.
diaspora_handle
%p
=
label_tag
:diaspora_handle
,
t
(
'.contact_username'
),
:for
=>
"request_d_handle_to_
#{
aspect
.
id
}
"
=
text_field_tag
:diaspora_handle
,
''
,
:id
=>
"request_d_handle_to_
#{
aspect
.
id
}
"
=
hidden_field_tag
:aspect_id
,
aspect
.
id
-
if
defined?
(
getting_started
)
=
hidden_field_tag
:getting_started
,
getting_started
-
if
defined?
(
manage
)
=
hidden_field_tag
:manage
,
true
=
submit_tag
t
(
'.create_request'
)
%br
.spinner.hidden
=
image_tag
'ajax-loader.gif'
%ul
{
:class
=>
'webfinger_result stream'
,
:aspect_id
=>
aspect
.
id
}
%li
.error.hidden
.webfinger_error
=
link_to
t
(
'.know_email'
),
"#invite_user_pane"
,
:class
=>
"invite_user_button"
%br
.yo
{
:style
=>
"display:none;"
}
.invite_user_pane
=
render
"invitations/new"
=
render
'shared/add_contact'
,
:aspect
=>
aspect
app/views/users/getting_started.html.haml
View file @
0965b45f
...
...
@@ -12,7 +12,7 @@
$
(
"
.aspects li
"
).
find
(
"
.delete
"
).
live
(
"
click
"
,
function
(){
var
aspectElement
=
$
(
this
).
parent
(
"
li
"
);
if
(
confirm
(
#{
t
(
'are_you_sure'
)
}
)){
if
(
confirm
(
"
#{
t
(
'are_you_sure'
)
}
"
)){
aspectElement
.
fadeOut
(
300
,
function
(){
aspectElement
.
remove
();});
}
});
...
...
app/views/users/getting_started/_step_2.html.haml
View file @
0965b45f
-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
%h3
=
t
(
'.your_aspects'
)
.description
...
...
@@ -10,7 +8,7 @@
%h4
=
t
(
'.aspect_name'
)
=
form_for
Aspect
.
new
,
:remote
=>
true
,
:format
=>
:json
do
|
aspect
|
=
form_for
Aspect
.
new
do
|
aspect
|
=
aspect
.
text_field
:name
,
:style
=>
"display:inline;"
=
aspect
.
submit
t
(
'.add'
)
...
...
config/locales/diaspora/en.yml
View file @
0965b45f
...
...
@@ -139,7 +139,7 @@ en:
name
:
"
Name"
create
:
"
Create"
create
:
success
:
"
Click
on
the
plus
on
the
left
side
to
tell
Diaspora
who
can
see
your
new
aspect.
"
success
:
"
Your
new
aspect
%{name}
was
created
"
failure
:
"
Aspect
creation
failed."
destroy
:
success
:
"
%{name}
was
successfully
removed."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment