Invite page for Linux
This commit is contained in:
parent
91d62ac7e7
commit
9cd5ce092a
|
@ -68,7 +68,6 @@ namespace SparkleShare {
|
||||||
"Don't worry, this information is only visible to your team members.";
|
"Don't worry, this information is only visible to your team members.";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Table table = new Table (2, 3, true) {
|
Table table = new Table (2, 3, true) {
|
||||||
RowSpacing = 6,
|
RowSpacing = 6,
|
||||||
ColumnSpacing = 6
|
ColumnSpacing = 6
|
||||||
|
@ -329,6 +328,62 @@ namespace SparkleShare {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case PageType.Invite: {
|
||||||
|
|
||||||
|
Header = _("You've reveived an invite!");
|
||||||
|
Description = _("Do you want to add this project to SparkleShare?");
|
||||||
|
|
||||||
|
|
||||||
|
Table table = new Table (2, 3, true) {
|
||||||
|
RowSpacing = 6,
|
||||||
|
ColumnSpacing = 6
|
||||||
|
};
|
||||||
|
|
||||||
|
Label address_label = new Label (_("Address:")) {
|
||||||
|
Xalign = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
Label path_label = new Label (_("Remote Path:")) {
|
||||||
|
Xalign = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
Label address_value = new Label ("<b>" + Controller.PendingInvite.Address + "</b>") {
|
||||||
|
UseMarkup = true,
|
||||||
|
Xalign = 0
|
||||||
|
};
|
||||||
|
|
||||||
|
Label path_value = new Label ("<b>" + Controller.PendingInvite.RemotePath + "</b>") {
|
||||||
|
UseMarkup = true,
|
||||||
|
Xalign = 0
|
||||||
|
};
|
||||||
|
|
||||||
|
table.Attach (address_label, 0, 1, 0, 1);
|
||||||
|
table.Attach (address_value, 1, 2, 0, 1);
|
||||||
|
table.Attach (path_label, 0, 1, 1, 2);
|
||||||
|
table.Attach (path_value, 1, 2, 1, 2);
|
||||||
|
|
||||||
|
VBox wrapper = new VBox (false, 9);
|
||||||
|
wrapper.PackStart (table, true, false, 0);
|
||||||
|
|
||||||
|
Button cancel_button = new Button (_("Cancel"));
|
||||||
|
|
||||||
|
cancel_button.Clicked += delegate {
|
||||||
|
Controller.PageCancelled ();
|
||||||
|
};
|
||||||
|
|
||||||
|
Button add_button = new Button (_("Add"));
|
||||||
|
|
||||||
|
add_button.Clicked += delegate {
|
||||||
|
Controller.InvitePageCompleted ();
|
||||||
|
};
|
||||||
|
|
||||||
|
AddButton (cancel_button);
|
||||||
|
AddButton (add_button);
|
||||||
|
Add (wrapper);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case PageType.Syncing: {
|
case PageType.Syncing: {
|
||||||
|
|
||||||
Header = String.Format (_("Adding project ‘{0}’…"), Controller.SyncingFolder);
|
Header = String.Format (_("Adding project ‘{0}’…"), Controller.SyncingFolder);
|
||||||
|
|
Loading…
Reference in a new issue