Browse Source

Better instance list sorting and display

master
Dwayne Harris 6 years ago
parent
commit
401b95f15d
  1. 12
      elpha-ios/Base.lproj/Main.storyboard
  2. 2
      elpha-ios/InstancesTableViewController.swift

12
elpha-ios/Base.lproj/Main.storyboard

@ -155,31 +155,31 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Statuses" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GvU-C8-JYy">
<rect key="frame" x="124" y="64" width="60" height="16"/>
<rect key="frame" x="124" y="64" width="100" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="FNh-pN-i9Y"/>
<constraint firstAttribute="width" constant="100" id="FNh-pN-i9Y"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.66422420739999999" green="0.66424006219999998" blue="0.66423153879999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4n9-eS-zCc">
<rect key="frame" x="124" y="84" width="60" height="17"/>
<rect key="frame" x="124" y="84" width="100" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="ddf-nO-YtD"/>
<constraint firstAttribute="width" constant="100" id="ddf-nO-YtD"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Users" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x17-3V-ix0">
<rect key="frame" x="192" y="64" width="35.5" height="16"/>
<rect key="frame" x="232" y="64" width="35.5" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.66422420739999999" green="0.66424006219999998" blue="0.66423153879999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4fE-NE-pXx">
<rect key="frame" x="192" y="84" width="38" height="17"/>
<rect key="frame" x="232" y="84" width="38" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>

2
elpha-ios/InstancesTableViewController.swift

@ -66,7 +66,7 @@ class InstancesTableViewController: UITableViewController {
var params = [
"count=\(instanceRequestCount)",
"sort_by=statuses",
"sort_by=users",
"sort_order=desc",
"include_closed=true",
"include_down=false",

Loading…
Cancel
Save